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

Commit

Permalink
Fixing promise test to not require unhandled promise rejections
Browse files Browse the repository at this point in the history
  • Loading branch information
MSLaguana committed Sep 13, 2017
1 parent 470cb48 commit b748ade
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-promises-unhandled-proxy-rejections.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ const thorny = new Proxy({}, {
construct: throwErr
});

if (!common.isChakraEngine) {
common.expectWarning({
DeprecationWarning: expectedDeprecationWarning,
UnhandledPromiseRejectionWarning: expectedPromiseWarning,
});
}

// ensure this doesn't crash
Promise.reject(thorny);

0 comments on commit b748ade

Please sign in to comment.