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: #24413
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
kanishk30 authored and rvagg committed Nov 28, 2018
1 parent bd8be40 commit 4348ffe
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 4348ffe

Please sign in to comment.