Chromium Code Reviews| 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', []); |
| } |