Skip to content
  • ggaren@apple.com's avatar
    Added a private API for getting a global context from a context, for · b76236c1
    ggaren@apple.com authored
    clients who want to preserve a context for a later callback.
    
    Patch by Geoffrey Garen <ggaren@apple.com> on 2009-10-19
    Reviewed by Sam Weinig.
    
    * API/APICast.h:
    (toGlobalRef): Added an ASSERT, since this function is used more often
    than before.
    
    * API/JSContextRef.cpp:
    * API/JSContextRefPrivate.h: Added. The new API.
    
    * API/tests/testapi.c:
    (print_callAsFunction):
    (main): Test the new API.
    
    * JavaScriptCore.exp:
    * JavaScriptCore.xcodeproj/project.pbxproj: Build and export the new API.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b76236c1