Closed svgeesus closed 3 years ago
Looking at https://tc39.es/ecma262/#sec-throwcompletion and https://tc39.es/ecma262/#sec-completion-record-specification-type, it does seem like throw-completion is what we want. But I think we might want to say:
Set completion to `throwCompletion({[[Type]: throw, [[Value]]: newly created TypeError, [[Target]]: empty})
I find the phrasing here a bit odd. It might be better to have step 0:
0. Let |value| be a newly created `TypeError` object.
1. Set |completion| to throwCompletiong({[[Type]: throw, [[Value]]: value, [[Target]]: empty}).
I think the second point about the record type is correct.
Since you already made the change for the PR, I don't know what we can do. At the very least we should match what you did in the PR.
Can we have a diff and back port here?
Describe the issue
Broken links to https://tc39.es/ecma262/#sec-completion
I believe this should be https://tc39.es/ecma262/#sec-throwcompletion
and also
I believe in this case it should link to https://tc39.es/ecma262/#sec-completion-record-specification-type
(I have made these changes to the Proposed Rec)