Ignore:
Timestamp:
Oct 19, 2009, 12:59:32 PM (16 years ago)
Author:
[email protected]
Message:

Added a private API for getting a global context from a context, for
clients who want to preserve a context for a later callback.

Patch by Geoffrey Garen <[email protected]> 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.gypi

    r49365 r49802  
    1919            'API/JSContextRef.cpp',
    2020            'API/JSContextRef.h',
     21            'API/JSContextRefPrivate.h',
    2122            'API/JSObjectRef.cpp',
    2223            'API/JSObjectRef.h',
Note: See TracChangeset for help on using the changeset viewer.