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