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

Unified Diff: lib/runtime/dart/typed_data.js

Issue 1131143002: Angular workarounds (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase on latest Created 5 years, 7 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
Index: lib/runtime/dart/typed_data.js
diff --git a/lib/runtime/dart/typed_data.js b/lib/runtime/dart/typed_data.js
index 7294ab1497dfe6db6a6adbaac314bf97b5eac79b..8159acd5644633dac9e528483302dcca0aba0675 100644
--- a/lib/runtime/dart/typed_data.js
+++ b/lib/runtime/dart/typed_data.js
@@ -12,9 +12,15 @@ var _native_typed_data = dart.lazyImport(_native_typed_data);
}
}
dart.defineNamedConstructor(Endianness, '_');
- Endianness.BIG_ENDIAN = dart.const(new Endianness._(false));
- Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true));
dart.defineLazyProperties(Endianness, {
+ get BIG_ENDIAN() {
+ return dart.const(new Endianness._(false));
+ },
+ set BIG_ENDIAN(_) {},
+ get LITTLE_ENDIAN() {
+ return dart.const(new Endianness._(true));
+ },
+ set LITTLE_ENDIAN(_) {},
get HOST_ENDIAN() {
return new ByteData.view(new Uint16List.fromList(dart.setType([1], core.List$(core.int))).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.BIG_ENDIAN;
}

Powered by Google App Engine
This is Rietveld 408576698