node/test/fixtures/syntax
Evan Lucas 5d1f1c5fa8 src: wrap source before doing syntax check
This is to ensure that it is evaluated the same way it would be if it
were to be run by node or required.

Before, the following would pass if run by node, but fail if run via
the syntax check flag:

    if (true) {
      return;
    }

Now, this will pass the syntax check

PR-URL: https://github.com/nodejs/node/pull/3587
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
2015-10-29 12:40:23 -07:00
..
bad_syntax.js node: add -c|--check CLI arg to syntax check script 2015-10-07 20:39:15 -07:00
bad_syntax_shebang.js node: add -c|--check CLI arg to syntax check script 2015-10-07 20:39:15 -07:00
good_syntax.js node: add -c|--check CLI arg to syntax check script 2015-10-07 20:39:15 -07:00
good_syntax_shebang.js node: add -c|--check CLI arg to syntax check script 2015-10-07 20:39:15 -07:00
illegal_if_not_wrapped.js src: wrap source before doing syntax check 2015-10-29 12:40:23 -07:00