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

Unified Diff: lib/runtime/dart/_internal.js

Issue 1054343004: Update to use the latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 | « no previous file | lib/runtime/dart/_js_helper.js » ('j') | lib/src/checker/checker.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_internal.js
diff --git a/lib/runtime/dart/_internal.js b/lib/runtime/dart/_internal.js
index 5744266645907a7ef4f560614480eaae8855ea17..e9da6665b0b62f0ecfb099d1146caf61dfba1df0 100644
--- a/lib/runtime/dart/_internal.js
+++ b/lib/runtime/dart/_internal.js
@@ -200,10 +200,8 @@ var _internal;
let growable = opts && 'growable' in opts ? opts.growable : true;
let result = null;
if (growable) {
- result = ((_) => {
- _[core.$length] = this.length;
- return _;
- }).bind(this)(new (core.List$(E))());
+ result = new (core.List$(E))();
+ result[core.$length] = this.length;
} else {
result = new (core.List$(E))(this.length);
}
« no previous file with comments | « no previous file | lib/runtime/dart/_js_helper.js » ('j') | lib/src/checker/checker.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698