Skip to content

Commit a3a6f24

Browse files
fix: check dart2js.
1 parent 9e973ab commit a3a6f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/platform_check/node_crypto.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ library nodecrypto;
33

44
import 'dart:js_interop';
55

6-
const bool isWASM = bool.fromEnvironment('dart.tool.dart2wasm');
6+
const bool isDart2JS = bool.fromEnvironment('dart.tool.dart2js');
77

88
@JS()
99
@staticInterop
@@ -24,7 +24,7 @@ extension on Versions {
2424
external JSAny get node;
2525
}
2626

27-
bool get isNodeDart2JS => _process?.versions?.node != null && !isWASM;
27+
bool get isNodeDart2JS => _process?.versions?.node != null && isDart2JS;
2828

2929
@JS()
3030
@staticInterop

0 commit comments

Comments
 (0)