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

Unified Diff: src/runtime.js

Issue 7475: - Specialized IsClassOf for Number, Boolean, Arguments, and Function. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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
« src/runtime.cc ('K') | « src/runtime.cc ('k') | src/v8natives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.js
===================================================================
--- src/runtime.js (revision 518)
+++ src/runtime.js (working copy)
@@ -352,8 +352,8 @@
// Make sure the arguments list has the right type.
if (args != null &&
- %ClassOf(args) != 'Array' &&
- %ClassOf(args) != 'Arguments') {
+ !%IsArrayClass(args) &&
+ !%IsArgumentsClass(args)) {
throw %MakeTypeError('apply_wrong_args', []);
}
« src/runtime.cc ('K') | « src/runtime.cc ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698