mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-29 16:41:33 +00:00
Fixed instantiate_streaming references
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
//! The webassembly::Instance() constructor function can be called to
|
||||
//! synchronously instantiate a given webassembly::Module object. However, the
|
||||
//! primary way to get an Instance is through the asynchronous
|
||||
//! webassembly::instantiateStreaming() function.
|
||||
//! webassembly::instantiate_streaming() function.
|
||||
use cranelift_codegen::ir::LibCall;
|
||||
use cranelift_codegen::{binemit, isa, Context};
|
||||
use cranelift_entity::EntityRef;
|
||||
|
@ -54,10 +54,10 @@ pub fn instantiate(
|
||||
Ok(ResultObject { module, instance })
|
||||
}
|
||||
|
||||
/// The webassembly::instantiateStreaming() function compiles and instantiates
|
||||
/// The webassembly::instantiate_streaming() function compiles and instantiates
|
||||
/// a WebAssembly module directly from a streamed underlying source.
|
||||
/// This is the most efficient, optimized way to load wasm code.
|
||||
pub fn instantiateStreaming(
|
||||
pub fn instantiate_streaming(
|
||||
buffer_source: Vec<u8>,
|
||||
import_object: ImportObject<&str, &str>,
|
||||
) -> Result<ResultObject, ErrorKind> {
|
||||
|
Reference in New Issue
Block a user