Index: src/runtime.js |
diff --git a/src/runtime.js b/src/runtime.js |
index 4d15d205a495b6623cf399ccd0dd36973cac22c4..192ac353c4b5d4a46c58208ef4ed245838f80a24 100644 |
--- a/src/runtime.js |
+++ b/src/runtime.js |
@@ -614,6 +614,15 @@ function IsPrimitive(x) { |
} |
+// ES6, draft 10-14-14, section 22.1.3.1.1 |
+function IsConcatSpreadable(O) { |
+ if (!IS_SPEC_OBJECT(O)) return false; |
+ var spreadable = O[symbolIsConcatSpreadable]; |
+ if (IS_UNDEFINED(spreadable)) return IS_ARRAY(O); |
+ return ToBoolean(spreadable); |
+} |
+ |
+ |
// ECMA-262, section 8.6.2.6, page 28. |
function DefaultNumber(x) { |
if (!IS_SYMBOL_WRAPPER(x)) { |