Skip to content

Commit a8f97ed

Browse files
Fix wasmPath for Windows + Node.js + dart2wasm combo. (#2551)
Use a raw string to read without escape characters.
1 parent 5855358 commit a8f97ed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkgs/test/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Require Dart 3.7
55
* Add `--coverage-path` and `--branch-coverage` options to `dart test`.
66
* Serve dart2wasm source map files.
7+
* Fix Node.js dart2wasm tests on windows.
78
* Doc edit: clarify in README that a platform selector includes the compiler.
89

910
## 1.26.3

pkgs/test/lib/src/runner/node/platform.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ const { PassThrough } = require('stream');
296296
const main = async () => {
297297
const { instantiate, invoke } = await import("./$loader");
298298
299-
const wasmContents = createReadStream("$wasmPath.wasm");
299+
const wasmContents = createReadStream(String.raw`$wasmPath.wasm`);
300300
const stream = new PassThrough();
301301
wasmContents.pipe(stream);
302302

0 commit comments

Comments
 (0)