reverting these changes in order to fix crash for now:

- Bug 1136925 part 1. Stop passing a parent to JS_CloneObject (02806f3cb)
- Bug 1136925 part 2. Stop passing a parent to Wrapper::New. (1d51cbd34)
- Bug 1136925 part 3. Stop passing parents to js::NewProxyObject. (dc13db8da)
- Bug 1136925 part 4. Stop passing parents to ProxyObject::New. (e2d30e340)
This commit is contained in:
2019-01-12 18:20:33 +08:00
parent 328a39fa04
commit 9638eeef71
26 changed files with 67 additions and 46 deletions
+1 -1
View File
@@ -1206,7 +1206,7 @@ NewScriptedProxy(JSContext* cx, CallArgs& args, const char* callerName)
RootedValue priv(cx, ObjectValue(*target));
JSObject* proxy_ =
NewProxyObject(cx, &ScriptedDirectProxyHandler::singleton,
priv, TaggedProto::LazyProto);
priv, TaggedProto::LazyProto, cx->global());
if (!proxy_)
return false;
Rooted<ProxyObject*> proxy(cx, &proxy_->as<ProxyObject>());