Bug 8844105 - Handlify JS_WrapObject. r=terrence

This commit is contained in:
Tom Schuster
2013-10-15 20:02:23 -04:00
parent 6b448ec5aa
commit b6ee9f1bce
37 changed files with 100 additions and 99 deletions

View File

@@ -29,7 +29,7 @@ class CpowIdHolder : public CpowHolder
{
}
bool ToObject(JSContext *cx, JSObject **objp);
bool ToObject(JSContext *cx, JS::MutableHandleObject objp);
private:
JavaScriptShared *js_;
@@ -87,7 +87,7 @@ class JavaScriptShared
static const uint32_t OBJECT_EXTRA_BITS = 1;
static const uint32_t OBJECT_IS_CALLABLE = (1 << 0);
bool Unwrap(JSContext *cx, const InfallibleTArray<CpowEntry> &aCpows, JSObject **objp);
bool Unwrap(JSContext *cx, const InfallibleTArray<CpowEntry> &aCpows, JS::MutableHandleObject objp);
bool Wrap(JSContext *cx, JS::HandleObject aObj, InfallibleTArray<CpowEntry> *outCpows);
protected: