We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61f571 commit c2766c2Copy full SHA for c2766c2
lib/runners/jsshell.js
@@ -35,8 +35,7 @@ function JSShellRunner(args) {
35
36
if(args.batch) {
37
this.batchTestStart =
38
- 'var env = evalcx("");\n' +
39
- 'env.print = print;' +
+ 'var env = newGlobal();\n' +
40
'try {\n';
41
42
this.batchTestEnd =
@@ -60,7 +59,7 @@ JSShellRunner.prototype.executeBatch = function(batch, batchDone) {
60
59
batch.forEach(function(test, i) {
61
script += this._print('"test262/test-start"')
62
+ this.batchTestStart
63
- + 'evalcx(' + JSON.stringify(test.contents) + ', env);\n'
+ + 'env.evaluate(' + JSON.stringify(test.contents) + ');\n'
64
+ this.batchTestEnd
65
+ this._print('"test262/test-end"');
66
}, this);
0 commit comments