public final class StableContextOptionValue<T>
extends Object
A wrapper around a context option that may be treated as stable, and optionally patchable.
Certain restrictions apply to how these options may be used, and care must be taken not to
sidestep these restrictions to ensure option-dependent behavior is preserved, namely:
Stable options must not be used during language initialization and must not be stored anywhere
else or affect how JS code is parsed and how nodes are created. Dependent compiled code will be
invalidated and interpreted code must observe the new option value immediately.
Patchable options must either not be used during context initialization at all or carefully be
used in such a way that context patching will leave the context not observably different from a
newly created context, as if reversing and reapplying the effects of the option.
- See Also:
JSContextOptions