Skip to content

Commit

Permalink
fix #353: normative changes for Error.message
Browse files Browse the repository at this point in the history
  • Loading branch information
caridy committed Dec 1, 2022
1 parent 48ad732 commit b3dfd30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ <h1>
<emu-note type=editor>
In the case of an abrupt ~throw~ completion, the type of error to be created should match the type of the abrupt throw completion record. This could be revisited when merging into the main specification. Additionally, in the case of a ~break~ or ~continue~ completion, since those are not supported, a TypeError is expected.
</emu-note>
<p>
Host environments may provide implementation-specific stack information for introspection APIs. If so, all Error objects originating from code executed inside a ShadowRealm must be subject to censorship. The specific steps are implementation-defined but must respect the following: The information exposed as part of Error's stack must contain only the details of the stack-frames associated to the ShadowRealm, and not reveal any details of frames associated with other realms, including the number of any such frames. Implementations can store information of the full stack if the error can cross into another Realm, however the implementation cannot use that information to reveal more information than allowed above.
</p>
</emu-clause>

<emu-clause id="sec-create-type-error-copy" type="abstract operation">
Expand All @@ -138,7 +135,7 @@ <h1>
1. Return _newError_.
</emu-alg>
<p>
Host environments may provide implementation-specific message value and stack information for introspection APIs. CreateTypeErrorCopy abstract operation must not cause any ECMAScript code execution. The implementation may store additional information on _originalError_ to produce the _newError_'s message and stack information. If _realmRecord_ corresponds to a ShadowRealm, _newError_ object must be subject to censorship in the same way Errors originated from _realmRecord_ are censored. Regardless of the _realmRecord_, the implementation must not include object references to _originalError_ or its associated realm in the stack information exposed to the program.
Host environments may provide implementation-specific message value. CreateTypeErrorCopy abstract operation must not cause any ECMAScript code execution. The implementation may store additional information on _originalError_ to produce the _newError_'s message.
</p>
</emu-clause>

Expand Down

0 comments on commit b3dfd30

Please sign in to comment.