1
0
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:
Jordan Harband 2016-02-17 15:01:26 -08:00
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'),