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

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

Issue 1047023002: use == and != to enable handling null/undefined (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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/math.js ('k') | lib/runtime/dart_runtime.js » ('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 abc9906b9b8de7eb47fc0bc3ea3c0599be815efa..30d746df798487d85d7964419410c61dcd664d71 100644
--- a/lib/runtime/dart/typed_data.js
+++ b/lib/runtime/dart/typed_data.js
@@ -17,7 +17,7 @@ var typed_data;
Endianness.LITTLE_ENDIAN = new Endianness[_](true);
dart.defineLazyProperties(Endianness, {
get HOST_ENDIAN() {
- return new ByteData.view(new Uint16List.fromList(dart.as(new core.List.from([1]), core.List$(core.int))).buffer).getInt8(0) === 1 ? Endianness.LITTLE_ENDIAN : Endianness.BIG_ENDIAN;
+ return new ByteData.view(new Uint16List.fromList(dart.as(new core.List.from([1]), core.List$(core.int))).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.BIG_ENDIAN;
}
});
class ByteData extends core.Object {
« no previous file with comments | « lib/runtime/dart/math.js ('k') | lib/runtime/dart_runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698