diff --git a/tests/dartdevc/const_test.dart b/tests/dartdevc/const_test.dart index b39656d95be..24f46ab6640 100644 --- a/tests/dartdevc/const_test.dart +++ b/tests/dartdevc/const_test.dart @@ -3,14 +3,14 @@ // BSD-style license that can be found in the LICENSE file. import "package:expect/expect.dart"; -import 'dart:_foreign_helper' show JS; +import 'dart:_foreign_helper' show JS, TYPE_REF; import 'dart:_runtime' as dart; void main() { dynamic data = JS('', '[1, 2, 3, 4]'); Expect.isFalse(data is List); - var list = dart.constList(data, dart.unwrapType(int)); + var list = dart.constList(data, TYPE_REF()); Expect.isTrue(list is List); Expect.throws(() { list[0] = 0;