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

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

Issue 1636233002: fixes #427, static fields emitted outside the scope of their class (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged2 Created 4 years, 11 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 | « lib/runtime/dart/html.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/typed_data.js
diff --git a/lib/runtime/dart/typed_data.js b/lib/runtime/dart/typed_data.js
index b1d4026cff5875a6ff62fc570308c5d0c19abc9a..2b13d81d183b438b8f55165c3d7c9863380a9d28 100644
--- a/lib/runtime/dart/typed_data.js
+++ b/lib/runtime/dart/typed_data.js
@@ -18,9 +18,13 @@ dart_library.library('dart/typed_data', null, /* Imports */[
dart.setSignature(Endianness, {
constructors: () => ({_: [Endianness, [core.bool]]})
});
- 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));
+ },
+ get LITTLE_ENDIAN() {
+ return dart.const(new Endianness._(true));
+ },
get HOST_ENDIAN() {
return ByteData.view(Uint16List.fromList(dart.list([1], core.int)).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.BIG_ENDIAN;
}
« no previous file with comments | « lib/runtime/dart/html.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698