mirror of
https://github.com/servo/servo.git
synced 2025-10-14 07:20:34 +01:00
The long-term plan for SpiderMonkey is to eliminate JSContexts by merging (most of) it into JSRuntime, so to future-proof our code, we should avoid creating multiple JSContexts for the same JSRuntime. However, this implies we'll have to use the same JSContext for objects in different compartments, so we need to enter compartments. This is done by using the with_compartment function. |
||
---|---|---|
.. | ||
codegen | ||
callback.rs | ||
conversions.rs | ||
element.rs | ||
error.rs | ||
js.rs | ||
proxyhandler.rs | ||
str.rs | ||
trace.rs | ||
utils.rs |