DescriptionIntl: Use private symbols to memoize bound functions
The Intl object used to keep around functions which are bound to the
receiver and memoized in the object (as required by the ECMA-402 spec)
in ordinary properties with names like __boundformat__. This patch
instead stores those methods in private symbol properties, so they are
not exposed to users. A search in GitHub didn't find any uses of
__boundformat__ (whereas the same search found plenty of usages of
other V8 Intl features), so I think this should be fine in terms of
web compatibility.
BUG=v8:3785
R=adamk
LOG=Y
Committed: https://crrev.com/a59f62fcd8082736d91d8d10912a6ecf18590b44
Cr-Commit-Position: refs/heads/master@{#34230}
Patch Set 1 #
Total comments: 1
Patch Set 2 : fix typo #
Messages
Total messages: 12 (5 generated)
|