mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add WrappedFunction coverage on non-callable proxy
This commit is contained in:
parent
100af9014e
commit
fcaa7594a4
@ -24,3 +24,4 @@ assert.throws(TypeError, () => wrappedFunction(1, {
|
||||
valueOf() { return 1; }
|
||||
}), 'object literal with immediate primitive coercion methods');
|
||||
assert.throws(TypeError, () => wrappedFunction(1, Object.create(null)), 'ordinary object with null __proto__');
|
||||
assert.throws(TypeError, () => wrappedFunction(1, new Proxy({}, { apply() {} })), 'non-callable proxy');
|
||||
|
@ -25,3 +25,4 @@ assert.throws(TypeError, r.evaluate(`
|
||||
});
|
||||
`), 'object literal with immediate primitive coercion methods');
|
||||
assert.throws(TypeError, r.evaluate('() => Object.create(null)'), 'ordinary object with null __proto__');
|
||||
assert.throws(TypeError, r.evaluate('() => new Proxy({}, { apply() {} })'), 'non-callable proxy');
|
||||
|
Loading…
x
Reference in New Issue
Block a user