You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
If Type(func) is Object and IsCallable(func) is true, then return an implementation-dependent String source code representation of func. The representation must have the syntax of a NativeFunction.
Throw a TypeError exception.
I see that it states implementation-dependent string, but then also specifies
NativeFunction:
function IdentifierNameopt (FormalParameters){ [nativecode] }
Is the wiggle room the whitespace around it? For example Chakra and V8 produce:
"function push() { [native code] }"
Where SpiderMonkey and JSC produce:
"function push() {\n [native code]\n}"
Have you gotten pushback for say standardizing on:
"function push() { [native code] }"
?
The text was updated successfully, but these errors were encountered:
Yes, the wiggle room is in the whitespace and comments. Standardising the toString output for values which are currently only restricted by the NativeFunction grammar was proposed in #21. Closing as duplicate.
I dig the revisions to this proposal 👍!
I see that it states implementation-dependent string, but then also specifies
Is the wiggle room the whitespace around it? For example Chakra and V8 produce:
"function push() { [native code] }"
Where SpiderMonkey and JSC produce:
"function push() {\n [native code]\n}"
Have you gotten pushback for say standardizing on:
"function push() { [native code] }"
?
The text was updated successfully, but these errors were encountered: