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

Unified Diff: pkg/dev_compiler/lib/src/compiler/code_generator.dart

Issue 2402123002: Use expect instead of unittest for json_lib_test. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | pkg/dev_compiler/test/browser/language_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/compiler/code_generator.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/code_generator.dart b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
index 456e8e345c5fae122d444cf393ace275029f5095..9cbc9ec0944963f19f5db971f50c5027fa1cbfb1 100644
--- a/pkg/dev_compiler/lib/src/compiler/code_generator.dart
+++ b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
@@ -3890,7 +3890,9 @@ class CodeGenerator extends GeneralizingAstVisitor
}
var args = _visit(argumentList) as List<JS.Expression>;
// Native factory constructors are JS constructors - use new here.
- return isFactory && !isNative ? new JS.Call(ctor, args) : new JS.New(ctor, args);
+ return isFactory && !isNative
+ ? new JS.Call(ctor, args)
+ : new JS.New(ctor, args);
}
if (element != null && _isObjectLiteral(element.enclosingElement)) {
« no previous file with comments | « no previous file | pkg/dev_compiler/test/browser/language_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698