Ashley Claymore
Ashley Claymore
thanks @catamorphism, much appreciated. In that case I'll merge this.
In case we want to do it as part of this PR. We could also expand [RelationalExpression](https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#prod-RelationalExpression) `prop in val` to also accept Records and Tuples. Right now non-objects throw...
> I don't think `IsConcatSpreadable` should treat tuples as arrays. `IsConcatSpreadable` is a hook for things that are much more array-like, such as NodeLists in HTML. Hi @michaelficarra , would...
There are other places where we are treating Tuples more like _Arrays_ than _'array-like'_. Namely `Array.prototype.flat` and `JSON.stringify`. A general design philosophy of Tuples is to think of them like...
Thanls @ljharb - much appreciated. > why does ToPrimitive have a fast path for Records, but not also for Tuples? (i understand that the lack of a Record prototype is...
Yep the completion handling isn’t right, likely a typo rather than intentional. I was only referring to why a `null` prototype isn’t handled.
Adding an assertion makes total sense, I like it.
Earlier discussion here: #133 Closed as "not part of V1". `Object.keys` will work with records, in the same way that it works on strings.
> (I also find it very strange to pass a string to the Object constructor; I've never done that and would look askance at any code which did.) I agree,...
> Is it intended that `[].with` always throws, no matter what arguments are passed? Yep that is intentional. There are no valid indexes to change for an empty array. And...