mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use safe JSContext in compartments
This commit is contained in:
parent
ce3778afcc
commit
b18fa8b8a7
2 changed files with 5 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue