03:28
<sirisian>
Curious, is there a syntax limitation that stops say: { foo.bar } being equal to { bar: foo.bar }. Could that be allowed in a proposal? I know it's not valid syntax right now for anything.
03:28
<sirisian>
I guess it might be covered by one of the many pick proposals maybe. Haven't followed those.
03:29
<bakkot>
there is no fundamental limitation but I don't think you are likely to convince people it's worth adding that syntax to the language
03:30
<bakkot>
many things are possible but not necessarily good ideas
03:50
<Justin Ridgewell>
We had exactly that proposal maybe three years ago
15:10
<Hemanth H.M>
Yup, https://github.com/rbuckton/proposal-shorthand-improvements
16:08
<Jack Works>
function x(...args) { return (args) }
Object.defineProperty(x, 'length', { value: 2**50 })
var infArr = new Proxy([], {
    get(x, k) { if (k === 'length') return 2**50; else return k }
})
Reflect.apply(x, null, infArr)
16:08
<Jack Works>
why it throws Invalid Array length? I didn't see a step in the Reflect.apply calls anything that might throw
16:08
<Jack Works>
👀
16:32
<ljharb>
Jack Works: step 2 is https://tc39.es/ecma262/#sec-createlistfromarraylike, step 3 of that is https://tc39.es/ecma262/#sec-lengthofarraylike, which leads to https://tc39.es/ecma262/#sec-tolength, which should clamp it to 2**53, and then the Call call takes that List and calls the function, and then i assume the args rest param throws trying to make an array out of it, since arrays are limited to 2**32
16:37
<Jack Works>
👀 thanks!