We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b2fef commit 2b5b7f0Copy full SHA for 2b5b7f0
crates/cli/tests/wasm-bindgen/main.rs
@@ -260,12 +260,15 @@ fn default_module_path_target_no_modules() {
260
fs::read_to_string(out_dir.join("default_module_path_target_no_modules.js")).unwrap();
261
assert!(contents.contains(
262
"\
263
- async function init(input) {
264
if (typeof document === 'undefined') {
265
script_src = location.href;
266
} else {
267
script_src = document.currentScript.src;
268
- }
+ }",
+ ));
269
+ assert!(contents.contains(
270
+ "\
271
+ async function init(input) {
272
if (typeof input === 'undefined') {
273
input = script_src.replace(/\\.js$/, '_bg.wasm');
274
}",
0 commit comments