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

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

Issue 1924413002: Fix modulo and bitwise operators. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 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 | « test/codegen/expect/expect/expect.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/notnull.js
diff --git a/test/codegen/expect/notnull.js b/test/codegen/expect/notnull.js
index 5fab38611c49972adc1dda4c48222e57eeb7c48b..58b7ccf6108eef3f340f07d321f9c5dd0414880c 100644
--- a/test/codegen/expect/notnull.js
+++ b/test/codegen/expect/notnull.js
@@ -8,13 +8,13 @@ dart_library.library('notnull', null, /* Imports */[
const notnull = Object.create(null);
notnull.intAssignments = function() {
let i = 0;
- i = i & 1;
- i = i | 1;
- i = i ^ 1;
- i = i >> 1;
- i = i << 1;
+ i = (i & 1) >>> 0;
+ i = (i | 1) >>> 0;
+ i = (i ^ 1) >>> 0;
+ i = i[dartx['>>']](1);
+ i = i[dartx['<<']](1);
i = i - 1;
- i = i % 1;
+ i = i[dartx['%']](1);
i = i + 1;
let t = i;
t == null ? i = 1 : t;
« no previous file with comments | « test/codegen/expect/expect/expect.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698