Comment #3 on issue 4234 by [email protected]: Wrapper created from wrong realm (SHOULD_CREATE_WRAPPER built-in)
https://code.google.com/p/v8/issues/detail?id=4234

Can you expand on why v8's is the wrong behavior?

http://www.ecma-international.org/ecma-262/6.0/#sec-well-known-intrinsic-objects

says that references to "%Number%" in the spec refer to the "current Realm", which per

http://www.ecma-international.org/ecma-262/6.0/#sec-execution-contexts

suggests that when running the algorithm for a built-in function, the current Realm should be whatever that function's function object's Realm is.

This does get a little fuzzy, though, as http://www.ecma-international.org/ecma-262/6.0/#sec-toobject refers to "a new Number" object instead of, as I'd expect, a call to the %Number% constructor.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to