DescriptionMake Object.observe on the global object functional
The approach in this change is to handle the unwrapping/wrapping of the global object transparently with respect to the JS implementation of Object.observe. An alternate approach would be to add a runtime method like %IsJSGlobalProxy and %UnwrapJSGlobalProxy, but it seems ugly to give JS (even implementation JS) access to the unwrapped global.
BUG=v8:2409
Committed: https://code.google.com/p/v8/source/detail?r=13142
Patch Set 1 #
Total comments: 11
Patch Set 2 : Review comments addressed #Patch Set 3 : Added API test #Patch Set 4 : Test with reattaching to a different context #
Total comments: 4
Patch Set 5 : Add test for attaching via Context::New #
Messages
Total messages: 11 (0 generated)
|