File tree 3 files changed +4
-4
lines changed
cli/src/bin/wasm-bindgen-test-runner
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub fn execute(
44
44
const support = require("./{0}");
45
45
const wasm = require("./{0}_bg");
46
46
47
- cx = new support.Context ();
47
+ cx = new support.WasmBindgenTestContext ();
48
48
handlers.on_console_debug = support.__wbgtest_console_debug;
49
49
handlers.on_console_log = support.__wbgtest_console_log;
50
50
handlers.on_console_info = support.__wbgtest_console_info;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub fn spawn(
18
18
let mut js_to_execute = format ! (
19
19
r#"
20
20
import {{
21
- Context,
21
+ WasmBindgenTestContext as Context,
22
22
__wbgtest_console_debug,
23
23
__wbgtest_console_log,
24
24
__wbgtest_console_info,
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ pub mod node;
114
114
///
115
115
/// The node.js entry script instantiates a `Context` here which is used to
116
116
/// drive test execution.
117
- #[ wasm_bindgen]
117
+ #[ wasm_bindgen( js_name = WasmBindgenTestContext ) ]
118
118
pub struct Context {
119
119
state : Rc < State > ,
120
120
}
@@ -199,7 +199,7 @@ pub fn log(args: &fmt::Arguments) {
199
199
js_console_log ( & args. to_string ( ) ) ;
200
200
}
201
201
202
- #[ wasm_bindgen]
202
+ #[ wasm_bindgen( js_class = WasmBindgenTestContext ) ]
203
203
impl Context {
204
204
/// Creates a new context ready to run tests.
205
205
///
You can’t perform that action at this time.
0 commit comments