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

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

Issue 1249043006: fix truncate call to use extension method (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 5 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/DeltaBlue.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/expect.js
diff --git a/test/codegen/expect/expect.js b/test/codegen/expect/expect.js
index ff5e1d1deb8fb281eeadad6489cbb8823b663c6f..646dab122143ce87f6696f32b94d445d70b475db 100644
--- a/test/codegen/expect/expect.js
+++ b/test/codegen/expect/expect.js
@@ -13,8 +13,8 @@ dart_library.library('expect', null, /* Imports */[
let overflow = dart.notNull(length) - (dart.notNull(end) - dart.notNull(start));
if (dart.notNull(overflow) > 10)
overflow = 10;
- start = dart.notNull(start) - ((dart.notNull(overflow) + 1) / 2).truncate();
- end = dart.notNull(end) + (dart.notNull(overflow) / 2).truncate();
+ start = dart.notNull(start) - ((dart.notNull(overflow) + 1) / 2)[dartx.truncate]();
+ end = dart.notNull(end) + (dart.notNull(overflow) / 2)[dartx.truncate]();
if (dart.notNull(start) < 0)
start = 0;
if (dart.notNull(end) > dart.notNull(string[dartx.length]))
@@ -29,7 +29,7 @@ dart_library.library('expect', null, /* Imports */[
let code = string[dartx.codeUnitAt](i);
if (dart.notNull(code) < 32) {
buf.write("\\x");
- buf.write("0123456789abcdef"[dartx.get]((dart.notNull(code) / 16).truncate()));
+ buf.write("0123456789abcdef"[dartx.get]((dart.notNull(code) / 16)[dartx.truncate]()));
buf.write("0123456789abcdef"[dartx.get](dart.notNull(code) % 16));
} else {
buf.writeCharCode(string[dartx.codeUnitAt](i));
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698