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 codebytere committed Jan 29, 2019
1 parent abe9778 commit 644a9d6
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 644a9d6

Please sign in to comment.