Index: src/array.js |
diff --git a/src/array.js b/src/array.js |
index 0d7a7cbc85e1f89a490d229fa759d047b3966fa6..10c05c2b162e155a0259840676f3140428bc65d7 100644 |
--- a/src/array.js |
+++ b/src/array.js |
@@ -607,7 +607,7 @@ function ArraySplice(start, delete_count) { |
// This does not follow ECMA-262, but we do the same for |
// compatibility. |
var del_count = 0; |
- if (num_arguments > 1) { |
+ if (num_arguments != 1) { |
Kevin Millikin (Chromium)
2011/01/31 12:32:03
OK. Now maybe it's clearer to change the comparis
|
del_count = TO_INTEGER(delete_count); |
if (del_count < 0) del_count = 0; |
if (del_count > len - start_i) del_count = len - start_i; |