| Index: frog/lib/corelib.dart
|
| diff --git a/frog/lib/corelib.dart b/frog/lib/corelib.dart
|
| index 16c53d08aea2f1e08e7fa0f13a9b8491a48849fe..e1e9a863935bc36036422f266e49e31bbd53e07e 100644
|
| --- a/frog/lib/corelib.dart
|
| +++ b/frog/lib/corelib.dart
|
| @@ -118,8 +118,10 @@ class Object native "Object" {
|
| bool operator ==(Object other) native;
|
| String toString() native;
|
|
|
| - // TODO(jmesserly): optimize this. No need to call it.
|
| - get dynamic() => this;
|
| + // TODO(jmesserly): optimize this. No need to call it, unless it's overridden.
|
| + // Notes: "use strict" prevents boxing.
|
| + // The Dart "return this" might help with type inference.
|
| + get dynamic() native '"use strict"; return this;' { return this; }
|
|
|
| // TODO(jmesserly): add named args. For now stay compatible with the VM.
|
| noSuchMethod(String name, List args) {
|
|
|