Commit bc6105e
committed
src: map UINT64_MAX to 0 in process.constrainedMemory()
When uv_get_constrained_memory() returns UINT64_MAX, it indicates
there is a constraining mechanism but no constraint is set. Per the
Node.js documentation, this should return 0 instead of exposing the
raw UINT64_MAX value to JavaScript.
Fixes: #592271 parent 3bbed16 commit bc6105e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| 254 | + | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| |||
0 commit comments