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

Unified Diff: lib/runtime/dart/core.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/collection.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/core.js
diff --git a/lib/runtime/dart/core.js b/lib/runtime/dart/core.js
index 71fc6cdc7428e36b853f7e61907f48282003c2aa..c2351dd4d58ee6fff3e3b25a549a72a456ced7ed 100644
--- a/lib/runtime/dart/core.js
+++ b/lib/runtime/dart/core.js
@@ -765,7 +765,7 @@ var core;
}
}
if (this[_namedArguments] != null) {
- this[_namedArguments].forEach(((key, value) => {
+ this[_namedArguments].forEach((key, value) => {
if (dart.notNull(i) > 0) {
sb.write(", ");
}
@@ -773,7 +773,7 @@ var core;
sb.write(": ");
sb.write(Error.safeToString(value));
i = dart.notNull(i) + 1;
- }).bind(this));
+ });
}
if (this[_existingArgumentNames] == null) {
return `NoSuchMethodError : method not found: '${this[_memberName]}'\n` + `Receiver: ${Error.safeToString(this[_receiver])}\n` + `Arguments: [${sb}]`;
@@ -1220,7 +1220,7 @@ var core;
result = ((_$) => {
_$.length = length;
return _$;
- }).bind(this)(new List$(E).from([]));
+ })(new List$(E).from([]));
} else {
result = new (List$(E))(length);
}
@@ -2350,7 +2350,7 @@ var core;
return Uri[_normalize](query, start, end, dart.as(Uri[_queryCharTable], List$(int)));
let result = new StringBuffer();
let first = true;
- queryParameters.forEach(dart.closureWrap(((key, value) => {
+ queryParameters.forEach(dart.closureWrap((key, value) => {
if (!dart.notNull(first)) {
result.write("&");
}
@@ -2360,7 +2360,7 @@ var core;
result.write("=");
result.write(Uri.encodeQueryComponent(dart.as(value, String)));
}
- }).bind(this), "(String, String) → void"));
+ }, "(String, String) → void"));
return result.toString();
}
static [_makeFragment](fragment, start, end) {
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698