mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
import changes from rmottola/Arctic-Fox:
- Bug 1140670 part 1. Just use the global, not the proto's parent, as the default parent in NewObjectWithGivenTaggedProto. (d2ef7ee90) - Bug 1140670 part 2. Just use the global as the parent in js::CreateThis and js::CreateThisForFunctionWithProto. (025d25703) - Bug 1140670 part 3. Add an assertParentIs() for asserting the parent is something specific and use it in various places to eliminate getParent() calls. (d814a6344) - Bug 1140573 part 1. Drop the parent argument from JS_NewFunction. (d657e25c7) - Bug 1140573 part 2. Drop the parent argument from JS_NewFunctionById. (2259f4027) - Bug 1140573 part 3. Drop the parent argument from js::NewFunctionWithReserved. (84ab2d944) - Bug 1140573 part 4. Drop the parent argument from js::NewFunctionByIdWithReserved. (a10821f1a) - Bug 1142266. Remove the parent argument from js::NewObjectWithProto. (efe9144e3) - Bug 1142241. Stop using getParent() in js::GetObjectEnvironmentObjectForFunction. (b04a4a38e) - some pointer style for better patching (608e1a6ad)
This commit is contained in:
@@ -1253,7 +1253,7 @@ js::proxy_revocable(JSContext* cx, unsigned argc, Value* vp)
|
||||
RootedValue proxyVal(cx, args.rval());
|
||||
MOZ_ASSERT(proxyVal.toObject().is<ProxyObject>());
|
||||
|
||||
RootedObject revoker(cx, NewFunctionByIdWithReserved(cx, RevokeProxy, 0, 0, cx->global(),
|
||||
RootedObject revoker(cx, NewFunctionByIdWithReserved(cx, RevokeProxy, 0, 0,
|
||||
AtomToId(cx->names().revoke)));
|
||||
if (!revoker)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user