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

Unified Diff: src/js/runtime.js

Issue 1525983002: [proxies] Make Array.prototype.concat work correctly with proxies. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « src/builtins.cc ('k') | test/mjsunit/harmony/array-concat.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/runtime.js
diff --git a/src/js/runtime.js b/src/js/runtime.js
index b5e23671f4f3d3319971732e6b641cbf636b1d83..300543e829e5be076ff8f7fd769f1a5abcb8b3f1 100644
--- a/src/js/runtime.js
+++ b/src/js/runtime.js
@@ -219,15 +219,6 @@ function AddIndexedProperty(obj, index, value) {
%SetForceInlineFlag(AddIndexedProperty);
-// ES6, draft 10-14-14, section 22.1.3.1.1
-function IsConcatSpreadable(O) {
- if (!IS_SPEC_OBJECT(O)) return false;
- var spreadable = O[isConcatSpreadableSymbol];
- if (IS_UNDEFINED(spreadable)) return IS_ARRAY(O);
- return TO_BOOLEAN(spreadable);
-}
-
-
function ToPositiveInteger(x, rangeErrorIndex) {
var i = TO_INTEGER_MAP_MINUS_ZERO(x);
if (i < 0) throw MakeRangeError(rangeErrorIndex);
« no previous file with comments | « src/builtins.cc ('k') | test/mjsunit/harmony/array-concat.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698