| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 650ec2d commit 8c9b41a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,9 +20,10 @@ const theError = new Error('Some error'); | |||
| 20 | 20 | ||
| 21 | 21 | // Test that the exception thrown above was marked as pending | |
| 22 | 22 | // before it was handled on the JS side | |
| 23 | - assert.strictEqual(test_exception.wasPending(), true, | ||
| 24 | - 'VM was marked as having an exception pending' + | ||
| 25 | - ' when it was allowed through'); | ||
| 23 | + const exception_pending = test_exception.wasPending(); | ||
| 24 | + assert.strictEqual(exception_pending, true, | ||
| 25 | + 'Exception not pending as expected,' + | ||
| 26 | + ` .wasPending() returned ${exception_pending}`); | ||
| 26 | 27 | ||
| 27 | 28 | // Test that the native side does not capture a non-existing exception | |
| 28 | 29 | returnedError = test_exception.returnException(common.mustCall()); | |
@@ -44,7 +45,8 @@ const theError = new Error('Some error'); | |||
| 44 | 45 | ` ${caughtError} was passed`); | |
| 45 | 46 | ||
| 46 | 47 | // Test that the exception state remains clear when no exception is thrown | |
| 47 | - assert.strictEqual(test_exception.wasPending(), false, | ||
| 48 | - 'VM was not marked as having an exception pending' + | ||
| 49 | - ' when none was allowed through'); | ||
| 48 | + const exception_pending = test_exception.wasPending(); | ||
| 49 | + assert.strictEqual(exception_pending, false, | ||
| 50 | + 'Exception state did not remain clear as expected,' + | ||
| 51 | + ` .wasPending() returned ${exception_pending}`); | ||
| 50 | 52 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments