mirror of https://github.com/tc39/test262.git
Remove arrow function syntax from harness/assert.js
After conversations in #1215, we need to catch up with the code that was previously produced before we set the features flags requirements.
This commit is contained in:
parent
9376782c6e
commit
74cfdfcca3
|
@ -91,5 +91,5 @@ assert.throws.early = function(err, code) {
|
|||
let wrappedCode = `function wrapperFn() { ${code} }`;
|
||||
let ieval = eval;
|
||||
|
||||
assert.throws(err, () => { Function(wrappedCode); }, `Function: ${code}`);
|
||||
assert.throws(err, function() { Function(wrappedCode); }, `Function: ${code}`);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue