Commit a426672
committed
HTML integration for "Error Stack Accessor" TC39 Proposal
Replace the non-normative "should" language about serializing "interesting accompanying data" with normative steps that explicitly serialize and deserialize the stack trace of Error objects during structured cloning.
In StructuredSerializeInternal, the stack trace is obtained as an implementation-defined string and included in the serialized record as [[Stack]].
In StructuredDeserialize, the Error object is created with a [[Stack]] internal slot, which is set to an implementation-defined value representing the stack trace from the serialized record.
This ensures the Error.prototype.stack accessor continues to work properly on deserialized errors.
The bibliography is updated to reference both the Error Stack Accessor and Error Stacks proposals.
This is the HTML integration PR for tc39/proposal-error-stack-accessor.
See tc39/proposal-error-stack-accessor#9 and tc39/proposal-error-stack-accessor#81 parent 83f1b8d commit a426672
1 file changed
Lines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10385 | 10385 | | |
10386 | 10386 | | |
10387 | 10387 | | |
10388 | | - | |
10389 | | - | |
10390 | | - | |
10391 | | - | |
10392 | | - | |
10393 | | - | |
10394 | | - | |
| 10388 | + | |
| 10389 | + | |
10395 | 10390 | | |
10396 | | - | |
10397 | | - | |
10398 | | - | |
| 10391 | + | |
| 10392 | + | |
10399 | 10393 | | |
10400 | 10394 | | |
10401 | 10395 | | |
| |||
10847 | 10841 | | |
10848 | 10842 | | |
10849 | 10843 | | |
10850 | | - | |
| 10844 | + | |
10851 | 10845 | | |
10852 | 10846 | | |
10853 | 10847 | | |
| |||
10857 | 10851 | | |
10858 | 10852 | | |
10859 | 10853 | | |
10860 | | - | |
10861 | | - | |
| 10854 | + | |
| 10855 | + | |
10862 | 10856 | | |
10863 | 10857 | | |
10864 | 10858 | | |
| |||
156207 | 156201 | | |
156208 | 156202 | | |
156209 | 156203 | | |
| 156204 | + | |
| 156205 | + | |
| 156206 | + | |
156210 | 156207 | | |
156211 | | - | |
| 156208 | + | |
156212 | 156209 | | |
156213 | 156210 | | |
156214 | 156211 | | |
| |||
0 commit comments