Skip to main content

compile_source_strict

Function compile_source_strict 

Source
pub fn compile_source_strict(
    source: &str,
    options: &CompileOptions,
    cancel: Option<Arc<AtomicBool>>,
) -> Result<BytecodeChunk, CompileError>
Expand description

Compiles source, returning malformed programs as Err.

ยงErrors

Returns a parse error for malformed source, an internal error for compiler limits, or CompileErrorKind::Cancelled when the cancel flag is set at a cooperative compiler safepoint.