Skip to content
Snippets Groups Projects
Commit 6f05b008 authored by Jordan Harband's avatar Jordan Harband
Browse files

Encapsulate helper function's helper function

parent 59dad917
No related branches found
No related tags found
No related merge requests found
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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment