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

Unified Diff: lib/runtime/dart/_js_helper.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/_isolate_helper.js ('k') | lib/runtime/dart/async.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_js_helper.js
diff --git a/lib/runtime/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js
index 397e5efc03f7a161a550353f8dfee25ace314d2e..c3af49b6780934806c6195d3a159d3211a5adf82 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -1682,7 +1682,7 @@ var _js_helper;
((_$) => {
_$.sort();
return _$;
- }).bind(this)(positions.keys.toList()).forEach(((name) => {
+ })(positions.keys.toList()).forEach(((name) => {
this.cachedSortedIndices.set(((x$) => index = dart.notNull(x$) + 1, x$)(index), positions.get(name));
}).bind(this));
}
@@ -1839,7 +1839,7 @@ var _js_helper;
if (typeof performance.now != "function")
return;
Primitives.timerFrequency = 1000000;
- Primitives.timerTicks = (() => (1000 * performance.now()).floor()).bind(this);
+ Primitives.timerTicks = () => (1000 * performance.now()).floor();
}
static get isD8() {
return typeof version == "function" && typeof os == "object" && "system" in os;
@@ -2026,12 +2026,12 @@ var _js_helper;
}
let names = '';
if (dart.notNull(namedArguments != null) && !dart.notNull(namedArguments.isEmpty)) {
- namedArguments.forEach(((name, argument) => {
+ namedArguments.forEach((name, argument) => {
names = `${names}$${name}`;
namedArgumentList.add(name);
arguments$.add(argument);
argumentCount = dart.notNull(argumentCount) + 1;
- }).bind(this));
+ });
}
let selectorName = `${_foreign_helper.JS_GET_NAME("CALL_PREFIX")}$${argumentCount}${names}`;
return dart.dinvoke(func, 'noSuchMethod', createUnmangledInvocationMirror(dart.throw_("Unimplemented SymbolLiteral: #call"), selectorName, JSInvocationMirror.METHOD, arguments$, namedArgumentList));
@@ -2089,13 +2089,13 @@ var _js_helper;
defaultArguments.set(parameterName, defaultValue);
}
let bad = false;
- namedArguments.forEach(((parameter, value) => {
+ namedArguments.forEach((parameter, value) => {
if (defaultArguments.containsKey(parameter)) {
defaultArguments.set(parameter, value);
} else {
bad = true;
}
- }).bind(this));
+ });
if (bad) {
return Primitives.functionNoSuchMethod(func, positionalArguments, namedArguments);
}
« no previous file with comments | « lib/runtime/dart/_isolate_helper.js ('k') | lib/runtime/dart/async.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698