Skip to content

Commit

Permalink
Remove unnecessary uses of let in harness.
Browse files Browse the repository at this point in the history
The use of `let` is unnecessary here, particularly in a
file that is needed to run any of the tests, even the ES5 tests.
Removing it allows older engines to run older tests.
  • Loading branch information
avp authored and rwaldron committed Dec 19, 2017
1 parent 642d883 commit 4fdbb34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions harness/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ assert.throws = function (expectedErrorConstructor, func, message) {
};

assert.throws.early = function(err, code) {
let wrappedCode = 'function wrapperFn() { ' + code + ' }';
let ieval = eval;
var wrappedCode = 'function wrapperFn() { ' + code + ' }';
var ieval = eval;

assert.throws(err, function() { Function(wrappedCode); }, 'Function: ' + code);
};

0 comments on commit 4fdbb34

Please sign in to comment.