pub struct Config { /* private fields */ }Expand description
Implementations§
source§impl Config
impl Config
sourcepub fn date(&mut self, enable: bool) -> &mut Self
pub fn date(&mut self, enable: bool) -> &mut Self
Configures whether the JavaScript Date intrinsic will be available.
sourcepub fn eval(&mut self, enable: bool) -> &mut Self
pub fn eval(&mut self, enable: bool) -> &mut Self
Configures whether the Eval intrinsic will be available.
sourcepub fn regexp_compiler(&mut self, enable: bool) -> &mut Self
pub fn regexp_compiler(&mut self, enable: bool) -> &mut Self
Configures whether the regular expression compiler will be available.
sourcepub fn regexp(&mut self, enable: bool) -> &mut Self
pub fn regexp(&mut self, enable: bool) -> &mut Self
Configures whether the RegExp intrinsic will be available.
sourcepub fn json(&mut self, enable: bool) -> &mut Self
pub fn json(&mut self, enable: bool) -> &mut Self
Configures whether the QuickJS native JSON intrinsic will be available.
sourcepub fn proxy(&mut self, enable: bool) -> &mut Self
pub fn proxy(&mut self, enable: bool) -> &mut Self
Configures whether proxy object creation will be available. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
sourcepub fn map_set(&mut self, enable: bool) -> &mut Self
pub fn map_set(&mut self, enable: bool) -> &mut Self
Configures whether the MapSet intrinsic will be available.
sourcepub fn promise(&mut self, enable: bool) -> &mut Self
pub fn promise(&mut self, enable: bool) -> &mut Self
Configures whether the Promise instrinsic will be available.
sourcepub fn big_int(&mut self, enable: bool) -> &mut Self
pub fn big_int(&mut self, enable: bool) -> &mut Self
Configures whether supoort for BigInt will be available.
sourcepub fn big_float(&mut self, enable: bool) -> &mut Self
pub fn big_float(&mut self, enable: bool) -> &mut Self
Configures whether support for BigFloat will be available.
sourcepub fn big_decimal(&mut self, enable: bool) -> &mut Self
pub fn big_decimal(&mut self, enable: bool) -> &mut Self
Configures whether supporr for BigDecimal will be available.
sourcepub fn operator_overloading(&mut self, enable: bool) -> &mut Self
pub fn operator_overloading(&mut self, enable: bool) -> &mut Self
Configures whether operator overloading wil be supported.
sourcepub fn bignum_extension(&mut self, enable: bool) -> &mut Self
pub fn bignum_extension(&mut self, enable: bool) -> &mut Self
Configures whether extensions to BigNum will be available.
sourcepub fn text_encoding(&mut self, enable: bool) -> &mut Self
pub fn text_encoding(&mut self, enable: bool) -> &mut Self
Configures whether the TextEncoding and TextDecoding intrinsics will
be available. NB: This is partial implementation.
sourcepub fn javy_stream_io(&mut self, enable: bool) -> &mut Self
pub fn javy_stream_io(&mut self, enable: bool) -> &mut Self
Whether the Javy.IO intrinsic will be available.
Disabled by default.
sourcepub fn redirect_stdout_to_stderr(&mut self, enable: bool) -> &mut Self
pub fn redirect_stdout_to_stderr(&mut self, enable: bool) -> &mut Self
Enables whether the output of console.log will be redirected to
stderr.