Skip to content

Commit

Permalink
test: fix arguments order in napi test_exception
Browse files Browse the repository at this point in the history
PR-URL: nodejs#24413
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Ouyang Yadong <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
kanishk30 authored and Trott committed Nov 19, 2018
1 parent 4327326 commit c03c6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/addons-napi/test_exception/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const test_exception = (function() {

// Test that the native side successfully captures the exception
let returnedError = test_exception.returnException(throwTheError);
assert.strictEqual(theError, returnedError);
assert.strictEqual(returnedError, theError);

// Test that the native side passes the exception through
assert.throws(
Expand Down

0 comments on commit c03c6e9

Please sign in to comment.