Skip to content
  • barraclough@apple.com's avatar
    Proxy the global this in JSC · 1bba3ce3
    barraclough@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=97734
    
    Reviewed by Oliver Hunt.
    
    Having jsc diverge from WebCore here is not beneficial; it potentially masks bugs and/or performance
    problems from command line testing.
    
    * jsc.cpp:
    (GlobalObject::create):
        - Create a this value proxy for the global object.
    * runtime/JSGlobalObject.h:
    (JSGlobalObject):
        - Make setGlobalThis protected.
    * runtime/JSProxy.h:
    (JSC::JSProxy::create):
    (JSC::JSProxy::target):
    (JSC::JSProxy::finishCreation):
    (JSProxy):
        - Allow proxy target to be a JSObject, add target to create method.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1bba3ce3