Commit afd5966f authored by Gabriel Schulhof's avatar Gabriel Schulhof Committed by Refael Ackermann
Browse files

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 8fbace16.

PR-URL: https://github.com/nodejs/node/pull/12283
Ref: https://github.com/nodejs/node/pull/12279


Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
parent 14749f9e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment