Skip to main content

compile_source_bytes

Function compile_source_bytes 

Source
pub fn compile_source_bytes(
    source: &[u8],
    options: &CompileOptions,
    cancel: Option<Arc<AtomicBool>>,
) -> Result<BytecodeChunk, CompileError>
Expand description

Compiles arbitrary source bytes into a decoded bytecode chunk.

Mirrors compile_source for inputs that are not valid UTF-8: string literals and byte-column locations preserve the original bytes, while a same-length surrogate string drives lexing and leading hot-comment scanning.

ยงErrors

As compile_source.