Bug 870423 - Use the actual hasInstance proxy hook for function proxies. r=luke, a=lsblakk
authorBobby Holley <bobbyholley@gmail.com>
Tue, 28 May 2013 10:29:37 -0700
changeset 142833 d2fe7df6517a5b67797c690f39173d3522a66964
parent 142832 8b5e5b168e783bf64cbfc2cd4794525a1cca49c8
child 142834 f7b87ea49450c0700c1a0e9775e4594876d5361d
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke, lsblakk
bugs870423
milestone23.0a2
Bug 870423 - Use the actual hasInstance proxy hook for function proxies. r=luke, a=lsblakk
js/src/jsproxy.cpp
--- a/js/src/jsproxy.cpp
+++ b/js/src/jsproxy.cpp
@@ -3192,17 +3192,17 @@ JS_FRIEND_DATA(Class) js::FunctionProxyC
     JS_PropertyStub,         /* getProperty */
     JS_StrictPropertyStub,   /* setProperty */
     JS_EnumerateStub,
     JS_ResolveStub,
     JS_ConvertStub,
     proxy_Finalize,          /* finalize */
     NULL,                    /* checkAccess */
     proxy_Call,
-    FunctionClass.hasInstance,
+    proxy_HasInstance,
     proxy_Construct,
     proxy_TraceFunction,     /* trace       */
     PROXY_CLASS_EXT,
     {
         proxy_LookupGeneric,
         proxy_LookupProperty,
         proxy_LookupElement,
         proxy_LookupSpecial,