Skip to content
Snippets Groups Projects
Commit 7d5a5fef authored by Michael Ficarra's avatar Michael Ficarra Committed by Rick Waldron
Browse files

add Function.prototype.toString result for callable proxies

parent 83ffb4bb
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2018 Michael Ficarra. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-function.prototype.tostring
description: Function.prototype.toString on a proxied function
info: |
Function.prototype.toString accepts any callable, including proxied
functions, and produces a NativeFunction
includes: [nativeFunctionMatcher.js]
---*/
const f = new Proxy(function(){}, {});
assertNativeFunction(f);
const g = new Proxy(f, { apply() {} });
assertNativeFunction(g);
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