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

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

Issue 1052693004: move => bind this workaround to js_ast (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « lib/runtime/dart/async.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/collection.js
diff --git a/lib/runtime/dart/collection.js b/lib/runtime/dart/collection.js
index f9be7a825730c28c345d57acd0ecf15deba43e7b..667d00b523d47dfc41f80e8c4f9b38aa9f7d2743 100644
--- a/lib/runtime/dart/collection.js
+++ b/lib/runtime/dart/collection.js
@@ -141,7 +141,7 @@ var collection;
return ((_) => {
_.addAll(other);
return _;
- }).bind(this)(this.toSet());
+ })(this.toSet());
}
intersection(other) {
let result = this.toSet();
@@ -833,7 +833,7 @@ var collection;
_.writeAll(parts, ", ");
_.write(rightDelimiter);
return _;
- }).bind(this)(new core.StringBuffer(leftDelimiter)).toString();
+ })(new core.StringBuffer(leftDelimiter)).toString();
}
static iterableToFullString(iterable, leftDelimiter, rightDelimiter) {
if (leftDelimiter === void 0)
@@ -2006,7 +2006,7 @@ var collection;
IterableBase[_toStringVisiting].add(m);
result.write('{');
let first = true;
- m.forEach(((k, v) => {
+ m.forEach((k, v) => {
if (!dart.notNull(first)) {
result.write(', ');
}
@@ -2014,7 +2014,7 @@ var collection;
result.write(k);
result.write(': ');
result.write(v);
- }).bind(this));
+ });
result.write('}');
} finally {
dart.assert(core.identical(IterableBase[_toStringVisiting].last, m));
@@ -3290,7 +3290,7 @@ var collection;
return ((_) => {
_.addAll(other);
return _;
- }).bind(this)(this[_clone]());
+ })(this[_clone]());
}
[_clone]() {
let set = new (SplayTreeSet$(E))(dart.closureWrap(this[_comparator], "(E, E) → int"), this[_validKey]);
« no previous file with comments | « lib/runtime/dart/async.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698