mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Encapsulate helper function's helper function
This commit is contained in:
parent
59dad9172b
commit
6f05b008dc
@ -1,7 +1,7 @@
|
||||
function throwTest262Error(msg) {
|
||||
return function () { throw new Test262Error(msg); };
|
||||
}
|
||||
function allowProxyTraps(overrides) {
|
||||
function throwTest262Error(msg) {
|
||||
return function () { throw new Test262Error(msg); };
|
||||
}
|
||||
if (!overrides) { overrides = {}; }
|
||||
var traps = {
|
||||
getPrototypeOf: overrides.getPrototypeOf || throwTest262Error('[[GetPrototypeOf]] trap called'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user