Enable compiling mjsunit tests as ES6 modules
authoradamk <adamk@chromium.org>
Tue, 10 Feb 2015 19:11:44 +0000 (11:11 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Feb 2015 19:11:55 +0000 (19:11 +0000)
commita18b797fd96730bc9407d27195fac66f44865004
treed0c01a5890beac5ed24ef3727c3cb15d0765f775
parent661668f7ab9011720fe44239d114ec6fb09a72f2
Enable compiling mjsunit tests as ES6 modules

Adding the line "// MODULE" to an mjsunit file will now cause
run-tests.py to prefix the test case with "--module" in the
d8 commandline.

d8 has itself been updated to treat files preceded with "--module" as
modules (that is, it compiles them with ScriptCompiler::CompileModule,
and turns on --harmony-modules).

Review URL: https://codereview.chromium.org/902263002

Cr-Commit-Position: refs/heads/master@{#26555}
src/d8.cc
src/d8.h
test/cctest/cctest.gyp
test/cctest/test-modules.cc [deleted file]
test/mjsunit/harmony/module-parsing-eval.js [moved from test/mjsunit/harmony/module-parsing.js with 100% similarity]
test/mjsunit/harmony/modules.js [new file with mode: 0644]
test/mjsunit/testcfg.py