Remove unnecessary uses of let in harness.

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.
This commit is contained in:
Aakash Patel 2017-12-04 11:28:13 -08:00 committed by Rick Waldron
parent 642d88377f
commit 4fdbb34914
1 changed files with 2 additions and 2 deletions

View File

@ -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);
};