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

Unified Diff: compiler/lib/implementation/bool.js

Issue 8241013: Pull "$instanceOf" methods off of the native object. No change in behavior. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 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
Index: compiler/lib/implementation/bool.js
===================================================================
--- compiler/lib/implementation/bool.js (revision 368)
+++ compiler/lib/implementation/bool.js (working copy)
@@ -2,15 +2,8 @@
// 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.
-/**
- * Extend the Boolean prototype with members expected in dart.
- *
- * TODO(jimhug): Add verification to ! and truth tests
- */
-Boolean.$instanceOf = function(obj) {
- return typeof obj == 'boolean' || obj instanceof Boolean;
-};
+
function native_BoolImplementation_EQ(other) {
if (typeof other == 'boolean') {
return this == other;
« no previous file with comments | « compiler/java/com/google/dart/compiler/backend/js/RuntimeTypeInjector.java ('k') | compiler/lib/implementation/number.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698