From 644a9d6919b78d349be3b453fa4a77877e57cad2 Mon Sep 17 00:00:00 2001 From: kanishk30 Date: Sat, 17 Nov 2018 16:46:20 +0530 Subject: [PATCH] test: fix arguments order in napi test_exception MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/24413 Reviewed-By: Michaƫl Zasso Reviewed-By: Ouyang Yadong Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/addons-napi/test_exception/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/addons-napi/test_exception/test.js b/test/addons-napi/test_exception/test.js index b9311add6c92d7..c572b459e6027d 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(