summaryrefslogtreecommitdiff
path: root/src/node_util.cc
diff options
context:
space:
mode:
authorGabriel Schulhof <gabriel.schulhof@intel.com>2017-04-08 16:12:13 +0300
committerRefael Ackermann <refack@gmail.com>2017-04-08 11:43:05 -0400
commitafd5966fa9a874ebb958518633b70b6af4f78b8f (patch)
tree3356ba28bb340b94dbdda8158ae045c8c75b32e9 /src/node_util.cc
parent14749f9eaffaa18eb2acfccfaa691329ae7d8ff4 (diff)
downloadandroid-node-v8-afd5966fa9a874ebb958518633b70b6af4f78b8f.tar.gz
android-node-v8-afd5966fa9a874ebb958518633b70b6af4f78b8f.tar.bz2
android-node-v8-afd5966fa9a874ebb958518633b70b6af4f78b8f.zip
napi: initialize and check status properly
Initialize status to napi_generic_failure and only check it after having made an actual N-API call. This fixes up 8fbace163afbd61b5efc57cf94414be904bf0188. PR-URL: https://github.com/nodejs/node/pull/12283 Ref: https://github.com/nodejs/node/pull/12279 Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/node_util.cc')
0 files changed, 0 insertions, 0 deletions