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

Unified Diff: sdk/lib/_internal/compiler/implementation/js/nodes.dart

Issue 13704004: dart2js: Use js('source') instead of js['source'] to invoke JS mini-parser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: sdk/lib/_internal/compiler/implementation/js/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js/nodes.dart b/sdk/lib/_internal/compiler/implementation/js/nodes.dart
index 6f0b755a3eb15201c493d91401d6b39051f4ee82..bd85713e452e64077b0bc0b142b25b84574b659b 100644
--- a/sdk/lib/_internal/compiler/implementation/js/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/js/nodes.dart
@@ -465,9 +465,9 @@ abstract class Expression extends Node {
if (expression == null) {
arguments = <Expression>[];
} else if (expression is List) {
- arguments = expression.map(js.toExpression).toList();
+ arguments = expression.map(jsBuilder.toExpression).toList();
} else {
- arguments = <Expression>[js.toExpression(expression)];
+ arguments = <Expression>[jsBuilder.toExpression(expression)];
}
return callWith(arguments);
}
@@ -491,15 +491,16 @@ abstract class Expression extends Node {
Expression operator >=(expression) => binary('>=', expression);
Expression binary(String operator, expression) {
- return new Binary(operator, this, js.toExpression(expression));
+ return new Binary(operator, this, jsBuilder.toExpression(expression));
}
Expression assign(expression) {
- return new Assignment(this, js.toExpression(expression));
+ return new Assignment(this, jsBuilder.toExpression(expression));
}
Expression update(String operator, expression) {
- return new Assignment.compound(this, operator, js.toExpression(expression));
+ return new Assignment.compound(
+ this, operator, jsBuilder.toExpression(expression));
}
Expression get plusPlus => new Postfix('++', this);

Powered by Google App Engine
This is Rietveld 408576698