Index: src/runtime.js |
diff --git a/src/runtime.js b/src/runtime.js |
index c9cf825038a95ab642808b5ea027553e3b514b35..ab16aafbbf642553f62118dd1179e2db5514a8d6 100644 |
--- a/src/runtime.js |
+++ b/src/runtime.js |
@@ -617,6 +617,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)) { |