Skip to content

Commit

Permalink
evaluate is the new evalcx
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Oct 17, 2014
1 parent f61f571 commit c2766c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/runners/jsshell.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ function JSShellRunner(args) {

if(args.batch) {
this.batchTestStart =
'var env = evalcx("");\n' +
'env.print = print;' +
'var env = newGlobal();\n' +
'try {\n';

this.batchTestEnd =
Expand All @@ -60,7 +59,7 @@ JSShellRunner.prototype.executeBatch = function(batch, batchDone) {
batch.forEach(function(test, i) {
script += this._print('"test262/test-start"')
+ this.batchTestStart
+ 'evalcx(' + JSON.stringify(test.contents) + ', env);\n'
+ 'env.evaluate(' + JSON.stringify(test.contents) + ');\n'
+ this.batchTestEnd
+ this._print('"test262/test-end"');
}, this);
Expand Down

0 comments on commit c2766c2

Please sign in to comment.