Description[json] Allow any callable object for toJSON.
Previously only JSFunctions seemed to be valid for toJSON, which doesn't
match the ES6 specification that allows any object with [[Call]]
internal method (i.e. any Callable in V8 terminology), including bound
functions and proxies.
BUG=chromium:595738, chromium:535408
R=yangguo@chromium.org
LOG=n
Committed: https://crrev.com/cc04776632834726aefcf8914ef5fb1ebb745a93
Cr-Commit-Position: refs/heads/master@{#34913}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|