Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: test/codegen/expect/typed_data/typed_data.js

Issue 959003003: Typecheck constructor initializers properly (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/math/math.js ('k') | test/dart_codegen/expect/_internal/iterable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/typed_data/typed_data.js
diff --git a/test/codegen/expect/typed_data/typed_data.js b/test/codegen/expect/typed_data/typed_data.js
index 0a73ff584ee4be77d3c817ca0e4914612f4c9676..f1d947f9319ca8e457362d859dad18b029d3bbf6 100644
--- a/test/codegen/expect/typed_data/typed_data.js
+++ b/test/codegen/expect/typed_data/typed_data.js
@@ -15,7 +15,7 @@ var typed_data;
Endianness.LITTLE_ENDIAN = new Endianness._(true);
dart.defineLazyProperties(Endianness, {
get HOST_ENDIAN() {
- return new ByteData.view(new Uint16List.fromList(new List.from([1])).buffer).getInt8(0) === 1 ? LITTLE_ENDIAN : BIG_ENDIAN;
+ return new ByteData.view(new Uint16List.fromList(dart.as(new List.from([1]), core.List$(core.int))).buffer).getInt8(0) === 1 ? LITTLE_ENDIAN : BIG_ENDIAN;
}
});
class ByteData extends dart.Object {
« no previous file with comments | « test/codegen/expect/math/math.js ('k') | test/dart_codegen/expect/_internal/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698