Created attachment 638785[details][diff][review]
Patch
We want to introduce this into the JSNative signature at some point, and this seems as reasonable a time as any to add it to public headers. Plus I need this for some new method-guard idiom work which should get rid of the current fugly NonGenericMethodGuard idiom, and which is needed to make some code work with the new proxy-based DOM bindings.