Skip to content

Commit

Permalink
Editorial: Don't allow writing NaN to frozen properties
Browse files Browse the repository at this point in the history
If an implementation can produce distinguishable NaN values, then
writing NaN values to a frozen (non-configurable and non-writable)
property can be detectable.
  • Loading branch information
anba committed Aug 26, 2024
1 parent 6c621d2 commit 0676b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -12748,7 +12748,7 @@ <h1>
1. If _Desc_ has a [[Set]] field and SameValue(_Desc_.[[Set]], _current_.[[Set]]) is *false*, return *false*.
1. Else if _current_.[[Writable]] is *false*, then
1. If _Desc_ has a [[Writable]] field and _Desc_.[[Writable]] is *true*, return *false*.
1. If _Desc_ has a [[Value]] field and SameValue(_Desc_.[[Value]], _current_.[[Value]]) is *false*, return *false*.
1. If _Desc_ has a [[Value]] field, return SameValue(_Desc_.[[Value]], _current_.[[Value]]).
1. If _O_ is not *undefined*, then
1. If IsDataDescriptor(_current_) is *true* and IsAccessorDescriptor(_Desc_) is *true*, then
1. If _Desc_ has a [[Configurable]] field, let _configurable_ be _Desc_.[[Configurable]]; else let _configurable_ be _current_.[[Configurable]].
Expand Down

0 comments on commit 0676b40

Please sign in to comment.