Skip to content

Commit 52f8780

Browse files
authored
[build_web_compilers] Fix WebAssembly detection logic (#3931)
Fixes #3930
1 parent d231a3d commit 52f8780

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

build_web_compilers/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.1.3
2+
3+
- Fixed WebAssembly detection logic.
4+
15
## 4.1.2
26

37
- Bump the min SDK to 3.7.0.

build_web_compilers/lib/src/web_entrypoint_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function relativeURL(ref) {
390390
dart2WasmResult?.supportExpression ??
391391
"'WebAssembly' in self && "
392392
'WebAssembly.validate(new Uint8Array('
393-
'[0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 95, 1, 120, 0]));';
393+
'[0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 95, 1, 120, 0]))';
394394

395395
loaderResult.writeln('''
396396
if ($supportCheck) {

build_web_compilers/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: build_web_compilers
2-
version: 4.1.2
2+
version: 4.1.3
33
description: Builder implementations wrapping the dart2js and DDC compilers.
44
repository: https://github.com/dart-lang/build/tree/master/build_web_compilers
55
resolution: workspace

0 commit comments

Comments
 (0)