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

Unified Diff: test/codegen/expect/expect.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/browser/language_tests.js ('k') | test/codegen/expect/expect/expect.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/expect.js
diff --git a/test/codegen/expect/expect.js b/test/codegen/expect/expect.js
index 3f6ee6519232c67333c3ec9066790f2a85c7e622..68c2cd597e8e7a7e22b787968705994614df5632 100644
--- a/test/codegen/expect/expect.js
+++ b/test/codegen/expect/expect.js
@@ -26,7 +26,7 @@ dart_library.library('expect', null, /* Imports */[
if (dart.notNull(code) < 32) {
buf.write("\\x");
buf.write("0123456789abcdef"[dartx.get]((dart.notNull(code) / 16)[dartx.truncate]()));
- buf.write("0123456789abcdef"[dartx.get](dart.notNull(code) % 16));
+ buf.write("0123456789abcdef"[dartx.get](code[dartx['%']](16)));
} else {
buf.writeCharCode(string[dartx.codeUnitAt](i));
}
« no previous file with comments | « test/browser/language_tests.js ('k') | test/codegen/expect/expect/expect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698