Skip to content

Commit 5b157b8

Browse files
authored
fix: Incompatible parseIsWeb detection prevents WASM support (#1096)
1 parent d634b78 commit 5b157b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dart/lib/src/base/parse_constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ const String keyError = 'error';
8686
const String keyCode = 'code';
8787
const String keyNetworkError = 'NetworkError';
8888

89-
const bool parseIsWeb = identical(0, 0.0);
89+
const bool parseIsWeb = bool.fromEnvironment('dart.library.js_util');

0 commit comments

Comments
 (0)