| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Per nodejs#1161, when the buf.write*() methods are given anything other than what they expect, indicate that the behavior is unspecified. Fixes: nodejs#1161
| format (`writeDoubleBE()` writes big endian, `writeDoubleLE()` writes little | ||
| endian). The `value` argument must be a valid 64-bit double. | ||
| endian). The `value` argument *should* be a valid 64-bit double. Behavior is | ||
| unspecified if `value` is anything other than a 64-bit double. |
There was a problem hiding this comment.
Maybe undefined is better than unspecified here? we're specifying that the behavior is undefined right here. That's what most other languages do (like C++).
Sorry, something went wrong.
There was a problem hiding this comment.
I think "Behavior is not defined" would be better, since the word "undefined" might confuse basic level english speakers into thinking undefined will get written into the buffer somehow. Though TBH "unspecified" looks fine to me.
Sorry, something went wrong.
|
LGTM though we need some more people to weigh in on the choice of word (unspecified/undefined/not defined) |
Sorry, something went wrong.
|
@claudiorodriguez @benjamingr .. updated. PTAL |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Pull Request check-list
existing APIs, or introduces new ones)?
Affected core subsystem(s)
doc/api/buffer.markdown
Description of change
Per #1161, when the buf.write*() methods are given anything other than what they expect, indicate that the behavior is unspecified.
Fixes: #1161