Index: lib/runtime/dart/core.js |
diff --git a/lib/runtime/dart/core.js b/lib/runtime/dart/core.js |
index d28b84bb3c90df78980e3bb48b54bff39bdad594..3174a3e9ab17b4e326154b31b8216551d76247fc 100644 |
--- a/lib/runtime/dart/core.js |
+++ b/lib/runtime/dart/core.js |
@@ -12,10 +12,9 @@ dart_library.library('dart/core', null, /* Imports */[ |
class Object { |
constructor() { |
let name = this.constructor.name; |
- let init = this[name]; |
let result = void 0; |
- if (init) |
- result = init.apply(this, arguments); |
+ if (name in this) |
+ result = this[name](...arguments); |
return result === void 0 ? this : result; |
} |
['=='](other) { |