Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: skip a check in test_handle_scope
Browse files Browse the repository at this point in the history
jsrt napi doesn't implement `napi_open_escapable_handle_scope`.
When we escape handle scope twice, we should throw, but there is
no place to store the information.

Hence skipping the check for now.

PR-URL: #321
Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
  • Loading branch information
kunalspathak committed Jun 29, 2017
1 parent 53b8790 commit ffa055e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/addons-napi/test_handle_scope/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ testHandleScope.NewScope();

assert.ok(testHandleScope.NewScopeEscape() instanceof Object);

assert.throws(
() => {
testHandleScope.NewScopeEscapeTwice();
},
Error);
if (!common.isChakraEngine) {
assert.throws(
() => {
testHandleScope.NewScopeEscapeTwice();
},
Error);
}

assert.throws(
() => {
Expand Down

0 comments on commit ffa055e

Please sign in to comment.