test: fix arguments order in napi test_exception

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
kanishk30 2018-11-17 16:46:20 +05:30 committed by Rich Trott
parent 43273262e5
commit c03c6e920f

View File

@ -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(