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.vcproj/JavaScriptCore/JavaScriptCore.vcproj

    r49705 r49802  
    14101410                        </File>
    14111411                        <File
     1412                                RelativePath="..\..\API\JSContextRefPrivate.h"
     1413                                >
     1414                        </File>
     1415                        <File
    14121416                                RelativePath="..\..\API\JSObjectRef.cpp"
    14131417                                >
Note: See TracChangeset for help on using the changeset viewer.