summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkanishk30 <kanishk71@gmail.com>2018-11-17 16:46:20 +0530
committerRich Trott <rtrott@gmail.com>2018-11-19 12:57:23 -0800
commitc03c6e920f03a6be69612a46355dad36c948c5b4 (patch)
treec206e15834ae9be2f40687627beb93ca19bb0fc0 /test
parent43273262e5f07a80cecf2cef6ac89ca1719821fb (diff)
downloadandroid-node-v8-c03c6e920f03a6be69612a46355dad36c948c5b4.tar.gz
android-node-v8-c03c6e920f03a6be69612a46355dad36c948c5b4.tar.bz2
android-node-v8-c03c6e920f03a6be69612a46355dad36c948c5b4.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/addons-napi/test_exception/test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/addons-napi/test_exception/test.js b/test/addons-napi/test_exception/test.js
index b9311add6c..c572b459e6 100644
--- a/test/addons-napi/test_exception/test.js
+++ b/test/addons-napi/test_exception/test.js
@@ -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(