Chromium Code Reviews| 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; |