mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
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:
parent
642d88377f
commit
4fdbb34914
@ -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);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user