Chromium Code Reviews| Index: src/array.js |
| diff --git a/src/array.js b/src/array.js |
| index 84c76620326f2973b270efd634594bc8e60e5df2..75b15fe5c7d4c3aee9f1e26c211b364267f0393e 100644 |
| --- a/src/array.js |
| +++ b/src/array.js |
| @@ -522,21 +522,8 @@ function ArrayPush() { |
| } |
| -// Returns an array containing the array elements of the object followed |
| -// by the array elements of each argument in order. See ECMA-262, |
| -// section 15.4.4.7. |
| function ArrayConcatJS(arg1) { // length == 1 |
|
Camillo Bruni
2015/09/04 13:54:55
This is no longer needed, however, I don't know ho
|
| - CHECK_OBJECT_COERCIBLE(this, "Array.prototype.concat"); |
| - |
| - var array = TO_OBJECT(this); |
| - var arg_count = %_ArgumentsLength(); |
| - var arrays = new InternalArray(1 + arg_count); |
| - arrays[0] = array; |
| - for (var i = 0; i < arg_count; i++) { |
| - arrays[i + 1] = %_Arguments(i); |
| - } |
| - |
| - return %ArrayConcat(arrays); |
| + return 1 |
| } |