Index: src/js/spread.js |
diff --git a/src/js/spread.js b/src/js/spread.js |
index 82ea83959853634d274089d13b54bc4db6918b01..235c91ab7928b00597ac2b5e9f093835a76e6647 100644 |
--- a/src/js/spread.js |
+++ b/src/js/spread.js |
@@ -18,11 +18,11 @@ |
// ------------------------------------------------------------------- |
function SpreadArguments() { |
- var count = arguments.length; |
+ var count = %_ArgumentsLength(); |
var args = new InternalArray(); |
for (var i = 0; i < count; ++i) { |
- var array = arguments[i]; |
+ var array = %_Arguments(i); |
var length = array.length; |
for (var j = 0; j < length; ++j) { |
args.push(array[j]); |