Files
sdk/pkg/dev_compiler/runtime/dart_core.js
T
Justin Fagnani 3546759833 More constructor codegen:
* constructor parameters
* named constructors
* initializer lists
* superclasses and super constructor calls
2014-12-05 15:21:28 -08:00

38 lines
901 B
JavaScript

var dart_core;
(function (dart_core) {
var Object = (function () {
var constructor = function Object() {};
constructor.prototype.toString = function toString() {
return 'Instance of ' + this.constructor.name;
};
constructor.prototype.noSuchMethod = function noSuchMethod(invocation) {
// TODO: add arguments when Invocation is defined
throw new NoSuchMethodError();
};
// TODO: implement ==
// TODO: implement hashCode
// TODO: implement runtimeType
return constructor;
})();
dart_core.Object = Object;
function print(obj) {
console.log(obj.toString());
}
dart_core.print = print;
var NoSuchMethodError = (function () {
// TODO(vsm): Implement.
function NoSuchMethodError(f, args) {
}
return NoSuchMethodError;
})();
dart_core.NoSuchMethodError = NoSuchMethodError;
})(dart_core || (dart_core = {}));