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

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

Issue 1117333002: Fix some static member emits (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: reformat Created 5 years, 8 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/core.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 d5b730b261add0d65d582c2b11bf2432598885c8..5f1767b8ce1413b2ebf803eeb36b9c548b87aedc 100644
--- a/lib/runtime/dart/typed_data.js
+++ b/lib/runtime/dart/typed_data.js
@@ -4,15 +4,14 @@ var typed_data;
class ByteBuffer extends core.Object {}
class TypedData extends core.Object {}
let _littleEndian = Symbol('_littleEndian');
- let _ = Symbol('_');
class Endianness extends core.Object {
_(littleEndian) {
this[_littleEndian] = littleEndian;
}
}
dart.defineNamedConstructor(Endianness, '_');
- Endianness.BIG_ENDIAN = dart.const(new Endianness[_](false));
- Endianness.LITTLE_ENDIAN = dart.const(new Endianness[_](true));
+ Endianness.BIG_ENDIAN = dart.const(new Endianness._(false));
+ Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true));
dart.defineLazyProperties(Endianness, {
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;
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698