mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-20 08:16:31 +00:00
Rename test Context
in JS
This will hopefully help avoid symbol collisions with other projects that have a struct named `Context`
This commit is contained in:
@ -44,7 +44,7 @@ pub fn execute(
|
||||
const support = require("./{0}");
|
||||
const wasm = require("./{0}_bg");
|
||||
|
||||
cx = new support.Context();
|
||||
cx = new support.WasmBindgenTestContext();
|
||||
handlers.on_console_debug = support.__wbgtest_console_debug;
|
||||
handlers.on_console_log = support.__wbgtest_console_log;
|
||||
handlers.on_console_info = support.__wbgtest_console_info;
|
||||
|
@ -18,7 +18,7 @@ pub fn spawn(
|
||||
let mut js_to_execute = format!(
|
||||
r#"
|
||||
import {{
|
||||
Context,
|
||||
WasmBindgenTestContext as Context,
|
||||
__wbgtest_console_debug,
|
||||
__wbgtest_console_log,
|
||||
__wbgtest_console_info,
|
||||
|
Reference in New Issue
Block a user