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

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

Issue 8286001: Changes "is" and equality checks to strictly check for primitive types, fix a couple of (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/rtt.js
===================================================================
--- compiler/lib/implementation/rtt.js (revision 400)
+++ compiler/lib/implementation/rtt.js (working copy)
@@ -269,7 +269,7 @@
* @return {boolean}
*/
function $isBool(o) {
- return typeof o == 'boolean' || o instanceof Boolean;
+ return typeof o == 'boolean';
}
/**
@@ -277,7 +277,7 @@
* @return {boolean}
*/
function $isNum(o) {
- return typeof o == 'number' || o instanceof Number;
+ return typeof o == 'number';
}
/**
@@ -285,5 +285,5 @@
* @return {boolean}
*/
function $isString(o) {
- return typeof o == 'string' || o instanceof String;
+ return typeof o == 'string';
}

Powered by Google App Engine
This is Rietveld 408576698