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:
parent
43273262e5
commit
c03c6e920f
@ -26,7 +26,7 @@ const test_exception = (function() {
|
|||||||
|
|
||||||
// Test that the native side successfully captures the exception
|
// Test that the native side successfully captures the exception
|
||||||
let returnedError = test_exception.returnException(throwTheError);
|
let returnedError = test_exception.returnException(throwTheError);
|
||||||
assert.strictEqual(theError, returnedError);
|
assert.strictEqual(returnedError, theError);
|
||||||
|
|
||||||
// Test that the native side passes the exception through
|
// Test that the native side passes the exception through
|
||||||
assert.throws(
|
assert.throws(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user