mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 987669 - Implement JS::ProtoKeyToId. r=luke
This commit is contained in:
parent
bc8026fc56
commit
e3f1bd9b22
@ -1350,6 +1350,16 @@ JS_GetClassPrototype(JSContext *cx, JSProtoKey key, MutableHandleObject objp)
|
||||
return GetBuiltinPrototype(cx, key, objp);
|
||||
}
|
||||
|
||||
namespace JS {
|
||||
|
||||
JS_PUBLIC_API(void)
|
||||
ProtoKeyToId(JSContext *cx, JSProtoKey key, MutableHandleId idp)
|
||||
{
|
||||
idp.set(NameToId(ClassName(key, cx)));
|
||||
}
|
||||
|
||||
} /* namespace JS */
|
||||
|
||||
JS_PUBLIC_API(JSProtoKey)
|
||||
JS_IdToProtoKey(JSContext *cx, HandleId id)
|
||||
{
|
||||
|
@ -1783,6 +1783,9 @@ IdentifyStandardInstanceOrPrototype(JSObject *obj);
|
||||
extern JS_PUBLIC_API(JSProtoKey)
|
||||
IdentifyStandardConstructor(JSObject *obj);
|
||||
|
||||
extern JS_PUBLIC_API(void)
|
||||
ProtoKeyToId(JSContext *cx, JSProtoKey key, JS::MutableHandleId idp);
|
||||
|
||||
} /* namespace JS */
|
||||
|
||||
extern JS_PUBLIC_API(JSProtoKey)
|
||||
|
Loading…
Reference in New Issue
Block a user