#[repr(C, packed(1))]pub struct TransitiveCompileOptions {Show 23 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 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_: boolThe 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§prefableOptions_: PrefableCompileOptions§introductionType: *const i8|introductionType| is a statically allocated C string. See JSScript.h for more information.
introductionLineno: u32§introductionOffset: u32§hasIntroductionInfo: boolTrait 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 more