From c78788a0219cc950be7159e65b9e8db01e9c1a7a Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 27 Feb 2019 10:05:58 -0800 Subject: deps: v8, backport 2d08967 Original commit message: [coverage] Extend SourceRangeAstVisitor for throw statements The SourceRangeAstVisitor has custom logic for blocks ending with a statement that has a continuation range. In these cases, the trailing continuation is removed which makes the reported coverage ranges a bit nicer. throw Error('foo') consists of an ExpressionStatement, with a Throw expression stored within the statement. The source range itself is stored with the Throw, not the statement. We now properly extract the correct AST node for trailing throw statements. R=jgruber@chromium.org, neis@chromium.org, yangguo@chromium.org Bug: v8:8691 Change-Id: Ibcbab79fbe54719a8993045040349c863b139011 Reviewed-on: https://chromium-review.googlesource.com/c/1480632 Commit-Queue: Georg Neis Reviewed-by: Georg Neis Reviewed-by: Jakob Gruber Cr-Commit-Position: refs/heads/master@{#59936} Refs: https://github.com/v8/v8/commit/2d08967d4a4b9a43aa2b11781421e09bff3b89ad PR-URL: https://github.com/nodejs/node/pull/26413 Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Gus Caplan Reviewed-By: James M Snell --- deps/v8/AUTHORS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deps/v8/AUTHORS') diff --git a/deps/v8/AUTHORS b/deps/v8/AUTHORS index 241c69f046..50d5d1acef 100644 --- a/deps/v8/AUTHORS +++ b/deps/v8/AUTHORS @@ -50,7 +50,7 @@ Andrew Paprocki Andrei Kashcha Anna Henningsen Bangfu Tao -Ben Coe +Ben Coe Ben Newman Ben Noordhuis Benjamin Tan -- cgit v1.2.3