Skip to content

Commit 967914b

Browse files
committed
Add distinguishable NaNs issue
1 parent f14945b commit 967914b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/native_math_bugs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
* [V8 deoptimizes if `Math.floor` provided `-0`][@bug:v8:2890]
3838
* [V8 deoptimizes if `Math.ceil` provided `0`][@bug:v8:4059]
3939
* [V8 `Math.round` accuracy][@bug:v8:958]
40+
* [Observability of distinguishable NaNs][@bug:esdiscuss:2013-03-20]
4041

4142

42-
* [Observability of distinguishable NaNs][22]
4343
* [SpiderMonkey updates `Math.random`][23]
4444
* [V8 blog on xoshirt implementation][24]
4545
* [Webkit bug to use a better PRNG][25]
@@ -95,14 +95,14 @@
9595
[@bug:v8:2890]: https://bugs.chromium.org/p/v8/issues/detail?id=2890
9696
[@bug:v8:4059]: https://bugs.chromium.org/p/v8/issues/detail?id=4059
9797
[@bug:v8:958]: https://bugs.chromium.org/p/v8/issues/detail?id=958
98+
[@bug:esdiscuss:2013-03-20]: https://esdiscuss.org/topic/observability-of-nan-distinctions-is-this-a-concern
9899

99100

100101
[v8-issue-tracker]: https://bugs.chromium.org/p/v8/issues/list?can=1&q=math&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Component%20Stars&num=100&start=100
101102
[webkit-issue-tracker]: https://bugs.webkit.org/buglist.cgi?quicksearch=math
102103
[mozilla-issue-tracker]: https://bugzilla.mozilla.org/buglist.cgi?quicksearch=math
103104

104105

105-
[22]: https://esdiscuss.org/topic/observability-of-nan-distinctions-is-this-a-concern
106106
[23]: https://bugzilla.mozilla.org/show_bug.cgi?id=322529#c99
107107
[25]: https://bugs.webkit.org/show_bug.cgi?id=151641
108108
[26]: https://bugs.webkit.org/show_bug.cgi?id=40367

docs/references/bugs.bib

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,12 @@ @misc{bug:v8:958
290290
year = {2010}
291291
}
292292

293+
@misc{bug:esdiscuss:2013-03-20,
294+
abstract = {I noticed Object.is being discussed recently, and this reminded me of a concern in definition of equality predicates: that there is more than one NaN value. I see that the current draft (March 8, 2013) section 8.1.5 discusses this, but it says that "to ECMAScript code, all NaN values are indistinguishable from each other." Depending on what you mean by “ECMAScript code”, this may be false given the Typed Arrays extension, which allows direct access to the bit-patterns of float values (the Typed Arrays spec permits, but does not require, replacing a NaN value with any other NaN value on read or write). In some browsers, namely current Safari and current Chrome (stable, not beta), there are at least two distinct observable patterns (apparently one for the NaN literal and propagation from operations on it, and one for operations on numbers that are undefined). Is this considered a problem?},
295+
keywords = {math, javascript, tc39, nan, ieee754, security},
296+
notes = {See also https://github.com/ljharb/get-nans/blob/master/index.js and https://github.com/tc39/ecma262/issues/635},
297+
title = {{Observability of NaN distinctions — is this a concern?}},
298+
url = {https://esdiscuss.org/topic/observability-of-nan-distinctions-is-this-a-concern},
299+
year = {2013}
300+
}
301+

0 commit comments

Comments
 (0)