diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-08-24 02:12:42 +0200 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-09-01 23:10:54 -0700 |
commit | 2cc757f0c703598c1bc5777e79c9344c946df2cc (patch) | |
tree | d18cf92ba5bda8b0464e05eff4ceacf09a5c1cf0 /.travis.yml | |
parent | 0f3aa81eab383ab85b5b84d6fe4570115d824a64 (diff) | |
download | android-node-v8-2cc757f0c703598c1bc5777e79c9344c946df2cc.tar.gz android-node-v8-2cc757f0c703598c1bc5777e79c9344c946df2cc.tar.bz2 android-node-v8-2cc757f0c703598c1bc5777e79c9344c946df2cc.zip |
src: do not crash when accessing empty WeakRefs
Making `.incRef()` and `.decRef()` fail silently leads to better error
messages when trying to access the underlying value (as opposed to
crashing inside these methods).
Refs: https://github.com/nodejs/node/pull/25461#issuecomment-524481482
PR-URL: https://github.com/nodejs/node/pull/29289
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions