Ignore:
Timestamp:
May 8, 2017, 3:51:11 PM (8 years ago)
Author:
[email protected]
Message:

Expose a function to get proxy targets
https://bugs.webkit.org/show_bug.cgi?id=171797
<rdar://problem/32027549>

Reviewed by Mark Lam.

This exposes a new private API function, JSObjectGetProxyTarget(), that gets the target of a
proxy. It works with both ProxyObject and JSProxy, but it's primarily intended for use with
JSProxy.

  • API/JSObjectRef.cpp:

(JSObjectGetProxyTarget):

  • API/JSObjectRefPrivate.h:
  • API/tests/JSObjectGetProxyTargetTest.cpp: Added.

(testJSObjectGetProxyTarget):

  • API/tests/JSObjectGetProxyTargetTest.h: Added.
  • API/tests/testapi.c:

(main):

  • JavaScriptCore.xcodeproj/project.pbxproj:
  • runtime/ProxyObject.h:
  • shell/PlatformWin.cmake:
File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.