mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
Use safe JSContext in compartments
This commit is contained in:
@@ -3335,7 +3335,7 @@ class CGCallGenerator(CGThing):
|
||||
if "cx" not in argsPre and needsCx:
|
||||
args.prepend(CGGeneric("cx"))
|
||||
if nativeMethodName in descriptor.inCompartmentMethods:
|
||||
args.append(CGGeneric("InCompartment::in_compartment(&AlreadyInCompartment::assert_for_cx(*cx))"))
|
||||
args.append(CGGeneric("InCompartment::in_compartment(&AlreadyInCompartment::assert_for_cx(cx))"))
|
||||
|
||||
# Build up our actual call
|
||||
self.cgRoot = CGList([], "\n")
|
||||
|
||||
Reference in New Issue
Block a user