Chromium Code Reviews| Index: lib/runtime/dart_runtime.js |
| diff --git a/lib/runtime/dart_runtime.js b/lib/runtime/dart_runtime.js |
| index 3e9d6baad776f3e51fff074dbb3496224f50b61f..9cb944c952158cef285a636d9279d1a2cb6a7106 100644 |
| --- a/lib/runtime/dart_runtime.js |
| +++ b/lib/runtime/dart_runtime.js |
| @@ -2,7 +2,7 @@ |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| -var dart, _js_helper; |
| +var dart, _js_helper, _js_primitives; |
| (function (dart) { |
| 'use strict'; |
| @@ -760,7 +760,7 @@ var dart, _js_helper; |
| let initMethod = proto[name]; |
| let ctor = function() { return initMethod.apply(this, arguments); } |
| ctor.prototype = proto; |
| - clazz[name] = ctor; |
| + defineProperty(clazz, name, { value: ctor, configurable: true }); |
|
Jacob
2015/04/29 21:53:19
everything looks fine but not clear why this needs
Jennifer Messerly
2015/04/29 23:07:33
good call, I'll add a comment :)
|
| } |
| dart.defineNamedConstructor = defineNamedConstructor; |
| @@ -937,4 +937,7 @@ var dart, _js_helper; |
| _js_helper = _js_helper || {}; |
| _js_helper.checkNum = notNull; |
| + _js_primitives = _js_primitives || {}; |
| + _js_primitives.printString = (s) => console.log(s); |
| + |
| })(dart || (dart = {})); |