#[repr(C, packed(1))]pub struct TransitiveCompileOptions {Show 24 fields
pub filename_: ConstUTF8CharsZ,
pub introducerFilename_: ConstUTF8CharsZ,
pub sourceMapURL_: *const u16,
pub mutedErrors_: bool,
pub forceStrictMode_: bool,
pub alwaysUseFdlibm_: bool,
pub skipFilenameValidation_: bool,
pub hideScriptFromDebugger_: bool,
pub deferDebugMetadata_: bool,
pub eagerDelazificationStrategy_: DelazificationOption,
pub selfHostingMode: bool,
pub discardSource: bool,
pub sourceIsLazy: bool,
pub allowHTMLComments: bool,
pub nonSyntacticScope: bool,
pub topLevelAwait: bool,
pub borrowBuffer: bool,
pub usePinnedBytecode: bool,
pub deoptimizeModuleGlobalVars: bool,
pub prefableOptions_: PrefableCompileOptions,
pub introductionType: *const i8,
pub introductionLineno: u32,
pub introductionOffset: u32,
pub hasIntroductionInfo: bool,
}
Expand description
The common base class for the CompileOptions hierarchy.
Use this in code that needs to propagate compile options from one compilation unit to another.
Fields§
§filename_: ConstUTF8CharsZ
§introducerFilename_: ConstUTF8CharsZ
§sourceMapURL_: *const u16
§mutedErrors_: bool
The Web Platform allows scripts to be loaded from arbitrary cross-origin sources. This allows an attack by which a malicious website loads a sensitive file (say, a bank statement) cross-origin (using the user’s cookies), and sniffs the generated syntax errors (via a window.onerror handler) for juicy morsels of its contents.
To counter this attack, HTML5 specifies that script errors should be sanitized (“muted”) when the script is not same-origin with the global for which it is loaded. Callers should set this flag for cross-origin scripts, and it will be propagated appropriately to child scripts and passed back in JSErrorReports.
forceStrictMode_: bool
§alwaysUseFdlibm_: bool
§skipFilenameValidation_: bool
§hideScriptFromDebugger_: bool
§deferDebugMetadata_: bool
§eagerDelazificationStrategy_: DelazificationOption
§selfHostingMode: bool
§discardSource: bool
§sourceIsLazy: bool
§allowHTMLComments: bool
§nonSyntacticScope: bool
§topLevelAwait: bool
§borrowBuffer: bool
§usePinnedBytecode: bool
§deoptimizeModuleGlobalVars: bool
§prefableOptions_: PrefableCompileOptions
§introductionType: *const i8
|introductionType| is a statically allocated C string. See JSScript.h for more information.
introductionLineno: u32
§introductionOffset: u32
§hasIntroductionInfo: bool
Trait Implementations§
source§impl Clone for TransitiveCompileOptions
impl Clone for TransitiveCompileOptions
source§fn clone(&self) -> TransitiveCompileOptions
fn clone(&self) -> TransitiveCompileOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransitiveCompileOptions
impl Debug for TransitiveCompileOptions
source§impl PartialEq for TransitiveCompileOptions
impl PartialEq for TransitiveCompileOptions
source§fn eq(&self, other: &TransitiveCompileOptions) -> bool
fn eq(&self, other: &TransitiveCompileOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for TransitiveCompileOptions
impl StructuralPartialEq for TransitiveCompileOptions
Auto Trait Implementations§
impl Freeze for TransitiveCompileOptions
impl RefUnwindSafe for TransitiveCompileOptions
impl !Send for TransitiveCompileOptions
impl !Sync for TransitiveCompileOptions
impl Unpin for TransitiveCompileOptions
impl UnwindSafe for TransitiveCompileOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more