156e6a71b5
Do not go through coreimpl for object implementation. Instead, use patching in core directly. This leads to error message issues in dart2js which I have patched up the best way I could find. R=ajohnsen@google.com,johnniwinther@google.com,lrn@google.com BUG= Review URL: https://chromiumcodereview.appspot.com//10918047 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11784 260f80e4-7a28-3924-810f-c04153c831b5
17 lines
582 B
Dart
17 lines
582 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// 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.
|
|
|
|
patch class Object {
|
|
/* patch */ String toString() => _toString(this);
|
|
|
|
/* patch */ void noSuchMethod(String functionName, List args) {
|
|
_noSuchMethod(this, functionName, args);
|
|
}
|
|
|
|
static void _noSuchMethod(Object obj, String functionName, List args)
|
|
native "Object_noSuchMethod";
|
|
|
|
static String _toString(Object obj) native "Object_toString";
|
|
}
|