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

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

Issue 1484003004: Remove unnecessary/incorrect bind (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_operations.js
diff --git a/lib/runtime/dart/_operations.js b/lib/runtime/dart/_operations.js
index 3b799250a065d763e45544c16a5c9c6dc45dfd0f..edce6cdf8490941f350c31a285f5d8a11af5ac0a 100644
--- a/lib/runtime/dart/_operations.js
+++ b/lib/runtime/dart/_operations.js
@@ -45,13 +45,7 @@ dart_library.library('dart/_operations', null, /* Imports */[
// Also, do we want an NSM on regular JS objects?
// See: https://github.com/dart-lang/dev_compiler/issues/169
let result = obj[field];
-
- // TODO(vsm): Check this more robustly.
vsm 2015/11/30 22:21:30 The method tearoffs should be caught in line 40 ab
- if (typeof result == "function" && !hasOwnProperty.call(obj, field)) {
- // This appears to be a method tearoff. Bind this.
- return result.bind(obj);
- }
- return result;
+ return result;
}
exports.dload = dload;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698