WrappedFunction should accepts callable proxy

This commit is contained in:
legendecas 2021-10-22 01:20:51 +08:00 committed by Rick Waldron
parent 1ad9bb7626
commit 541715762c
1 changed files with 1 additions and 0 deletions

View File

@ -21,3 +21,4 @@ assert.sameValue(typeof r.evaluate('(async function() {})'), 'function', 'async
assert.sameValue(typeof r.evaluate('(function*() {})'), 'function', 'generator expression');
assert.sameValue(typeof r.evaluate('(async function*() {})'), 'function', 'async generator expression');
assert.sameValue(typeof r.evaluate('() => {}'), 'function', 'arrow function');
assert.sameValue(typeof r.evaluate('new Proxy(() => {}, { apply() {} })'), 'function', 'callable proxy');