v8/test/mjsunit/es6/debug-promises
yangguo 6d0a420298 [debug] use catch prediction flag for promise rejections.
This is in preparation to implementing exception prediction for async
functions.  Each handler table entry can now predict "caught", "uncaught", or
"promise". The latter indicates that the exception will lead to a promise
rejection.

To mark the relevant try-catch blocks, we add a new native syntax.
try { } %catch (e) { } indicates a TryCatchStatement with the "promise"
prediction.

The previous implementation of using the function to tell the relevant
try-catch apart from inner try-catch blocks will not work for async functions
since these can have inner try-catch blocks inside the same function.

BUG=v8:5167

Review-Url: https://codereview.chromium.org/2161263003
Cr-Commit-Position: refs/heads/master@{#37966}
2016-07-22 06:04:54 +00:00
..
async-task-event.js Async/await event listener test 2016-06-10 19:15:35 +00:00
evaluate-across-microtasks.js
promise-all-caught.js
promise-all-uncaught.js
promise-race-caught.js
promise-race-uncaught.js
reentry.js
reject-after-resolve.js
reject-caught-all.js
reject-caught-by-default-reject-handler.js
reject-caught-late.js
reject-caught-uncaught.js
reject-in-constructor.js
reject-uncaught-all.js
reject-uncaught-late.js
reject-uncaught-uncaught.js
reject-with-invalid-reject.js
reject-with-throw-in-reject.js
reject-with-undefined-reject.js
stepin-constructor.js
stepin-handler.js
throw-caught-all.js
throw-caught-by-default-reject-handler.js
throw-caught-late.js
throw-caught-uncaught.js
throw-eventually-caught.js
throw-in-constructor.js
throw-uncaught-all.js
throw-uncaught-uncaught.js
throw-with-throw-in-reject.js [debug] use catch prediction flag for promise rejections. 2016-07-22 06:04:54 +00:00
throw-with-undefined-reject.js
try-reject-in-constructor.js
try-throw-reject-in-constructor.js