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

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

Issue 1142293002: Use dart.tearoff helper at tearoff sites (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Use dart.bind instead of dart.tearoff Created 5 years, 7 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/_isolate_helper.js » ('j') | no next file with comments »
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 cde740c6108b9311e4c87674ba24fdc0759468ff..d2e2a9b939d902d672c0f3d80a11fcc7657e0a32 100644
--- a/lib/runtime/dart/_internal.js
+++ b/lib/runtime/dart/_internal.js
@@ -1237,7 +1237,7 @@ var _js_primitives = dart.lazyImport(_js_primitives);
static sortList(list, compare) {
dart.as(compare, dart.functionType(core.int, [dart.dynamic, dart.dynamic]));
if (compare == null)
- compare = dart.bind(core.Comparable, 'compare');
+ compare = core.Comparable.compare;
Sort.sort(list, compare);
}
static shuffleList(list, random) {
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698