Skip to content

Commit c2766c2

Browse files
committed
evaluate is the new evalcx
1 parent f61f571 commit c2766c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/runners/jsshell.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ function JSShellRunner(args) {
3535

3636
if(args.batch) {
3737
this.batchTestStart =
38-
'var env = evalcx("");\n' +
39-
'env.print = print;' +
38+
'var env = newGlobal();\n' +
4039
'try {\n';
4140

4241
this.batchTestEnd =
@@ -60,7 +59,7 @@ JSShellRunner.prototype.executeBatch = function(batch, batchDone) {
6059
batch.forEach(function(test, i) {
6160
script += this._print('"test262/test-start"')
6261
+ this.batchTestStart
63-
+ 'evalcx(' + JSON.stringify(test.contents) + ', env);\n'
62+
+ 'env.evaluate(' + JSON.stringify(test.contents) + ');\n'
6463
+ this.batchTestEnd
6564
+ this._print('"test262/test-end"');
6665
}, this);

0 commit comments

Comments
 (0)