diff --git a/test/index.js b/test/index.js index be432625b0..efc6fe5ae5 100644 --- a/test/index.js +++ b/test/index.js @@ -46,7 +46,7 @@ function runTest(test) { throw err; } - if (!test.expect.code) { + if (!test.expect.code && !opts.throws) { test.expect.loc += "on"; return save(test, ast); }