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

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

Issue 961513002: Flesh out dynamic invocation code (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Streamline ++ and -- in fallback case Created 5 years, 10 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/dart/convert.js ('k') | test/codegen/expect/dart/math.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/dart/core.js
diff --git a/test/codegen/expect/dart/core.js b/test/codegen/expect/dart/core.js
index c0b03075998e01207210e9d77a2976935f0c0c86..fc1bb8d59b3a5773013a7b191d3d59cfd68dcd8e 100644
--- a/test/codegen/expect/dart/core.js
+++ b/test/codegen/expect/dart/core.js
@@ -436,7 +436,7 @@ var core;
return `0${n}`;
}
if (dart.notNull(this.inMicroseconds) < 0) {
- return `-${dart.throw_("Unimplemented PrefixExpression: -this")}`;
+ return `-${this['unary-']()}`;
}
let twoDigitMinutes = twoDigits(this.inMinutes.remainder(MINUTES_PER_HOUR));
let twoDigitSeconds = twoDigits(this.inSeconds.remainder(SECONDS_PER_MINUTE));
@@ -2313,7 +2313,7 @@ var core;
}
first = false;
result.write(Uri.encodeQueryComponent(dart.as(key, String)));
- if (dart.notNull(value !== null) && dart.notNull(dart.throw_("Unimplemented PrefixExpression: !value.isEmpty"))) {
+ if (dart.notNull(value !== null) && dart.notNull(dart.dunary('!', dart.dload(value, 'isEmpty')))) {
result.write("=");
result.write(Uri.encodeQueryComponent(dart.as(value, String)));
}
« no previous file with comments | « test/codegen/expect/dart/convert.js ('k') | test/codegen/expect/dart/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698