mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 12:31:22 +00:00
Use raw string in paths in webidl-tests generated code
This fixes things on Windows, which uses backslashes in their paths
This commit is contained in:
@ -2033,7 +2033,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
|
||||
if let Some(module) = &import.module {
|
||||
if use_node_require {
|
||||
imports.push_str(&format!(
|
||||
"const {} = require('{}').{};\n",
|
||||
"const {} = require(String.raw`{}`).{};\n",
|
||||
name, module, name_to_import
|
||||
));
|
||||
} else if name_to_import == name {
|
||||
|
Reference in New Issue
Block a user