Skip to content

Commit d125750

Browse files
committed
fix(crypto): update conditional import for js interop library
1 parent f00841d commit d125750

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/crypto/lib/src/sha512.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import 'dart:convert';
77
import 'digest.dart';
88
import 'hash.dart';
99
// ignore: uri_does_not_exist
10-
import 'sha512_fastsinks.dart' if (dart.library.js) 'sha512_slowsinks.dart';
10+
import 'sha512_fastsinks.dart'
11+
if (dart.library.js_interop) 'sha512_slowsinks.dart';
1112
import 'utils.dart';
1213

1314
/// An implementation of the [SHA-384][rfc] hash function.

0 commit comments

Comments
 (0)