Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: lib/runtime/dart_core.js

Issue 1034273003: fix for static methods and names banned in strict mode (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart/typed_data.js ('k') | lib/runtime/dart_runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_core.js
diff --git a/lib/runtime/dart_core.js b/lib/runtime/dart_core.js
deleted file mode 100644
index ce3402050cc386fcfc26815e220f2f968859896b..0000000000000000000000000000000000000000
--- a/lib/runtime/dart_core.js
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2015, 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.
-
-var core;
-(function (core) {
- 'use strict';
-
- // TODO(jmesserly): for now this is copy+paste from dart/core.js
- class Object {
- constructor() {
- var name = this.constructor.name;
- var init = this[name];
- var result = void 0;
- if (init)
- result = init.apply(this, arguments);
- return result === void 0 ? this : result;
- }
- ['=='](other) {
- return identical(this, other);
- }
- get hashCode() {
- return _js_helper.Primitives.objectHashCode(this);
- }
- toString() {
- return _js_helper.Primitives.objectToString(this);
- }
- noSuchMethod(invocation) {
- throw new NoSuchMethodError(this, invocation.memberName, invocation.positionalArguments, invocation.namedArguments);
- }
- get runtimeType() {
- return _js_helper.getRuntimeType(this);
- }
- }
- core.Object = Object;
-
- // Function identical: (Object, Object) → bool
- function identical(a, b) {
- return _js_helper.Primitives.identicalImplementation(a, b);
- }
- core.identical = identical;
-
- // Function print: (Object) → void
- function print(obj) {
- console.log(obj.toString());
- }
- core.print = print;
-
- // Class NoSuchMethodError
- var NoSuchMethodError = (function () {
- // TODO(vsm): Implement.
- function NoSuchMethodError(f, args) {
- }
- return NoSuchMethodError;
- })();
- core.NoSuchMethodError = NoSuchMethodError;
-
- // Class UnimplementedError
- var UnimplementedError = (function () {
- // TODO(vsm): Implement.
- function UnimplementedError(message) {
- this.message = (message != void 0) ? message : null;
- }
- return UnimplementedError;
- })();
- core.UnimplementedError = UnimplementedError;
-})(core || (core = {}));
« no previous file with comments | « lib/runtime/dart/typed_data.js ('k') | lib/runtime/dart_runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698