| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 465a32a commit 47cd49a
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | 28 | # Reset this number to 0 on major V8 upgrades. | |
| 29 | 29 | # Increment by one for each non-official patch applied to deps/v8. | |
| 30 | - 'v8_embedder_string': '-node.13', | ||
| 30 | + 'v8_embedder_string': '-node.14', | ||
| 31 | 31 | ||
| 32 | 32 | # Enable disassembler for `--print-code` v8 options | |
| 33 | 33 | 'v8_enable_disassembler': 1, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -302,10 +302,11 @@ TF_BUILTIN(MapConstructor, CollectionsBuiltinsAssembler) { | |||
| 302 | 302 | ||
| 303 | 303 | BIND(&if_notobject); | |
| 304 | 304 | { | |
| 305 | - Node* const exception = MakeTypeError( | ||
| 306 | - MessageTemplate::kIteratorValueNotAnObject, context, next_value); | ||
| 307 | - var_exception.Bind(exception); | ||
| 308 | - Goto(&if_exception); | ||
| 305 | + Node* ret = CallRuntime( | ||
| 306 | + Runtime::kThrowTypeError, context, | ||
| 307 | + SmiConstant(MessageTemplate::kIteratorValueNotAnObject), next_value); | ||
| 308 | + GotoIfException(ret, &if_exception, &var_exception); | ||
| 309 | + Unreachable(); | ||
| 309 | 310 | } | |
| 310 | 311 | } | |
| 311 | 312 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,3 +3,9 @@ paused in throwCaught | |||
| 3 | 3 | uncaught: false | |
| 4 | 4 | paused in throwUncaught | |
| 5 | 5 | uncaught: true | |
| 6 | + paused in throwInPromiseCaught | ||
| 7 | + uncaught: false | ||
| 8 | + paused in promiseUncaught | ||
| 9 | + uncaught: true | ||
| 10 | + paused in throwInMapConstructor | ||
| 11 | + uncaught: true | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,15 @@ let {session, contextGroup, Protocol} = InspectorTest.start("Check that inspecto | |||
| 7 | 7 | contextGroup.addScript( | |
| 8 | 8 | `function throwCaught() { try { throw new Error(); } catch (_) {} } | |
| 9 | 9 | function throwUncaught() { throw new Error(); } | |
| 10 | + function throwInPromiseCaught() { | ||
| 11 | + var reject; | ||
| 12 | + new Promise(function(res, rej) { reject = rej; }).catch(() => {}); | ||
| 13 | + reject(); | ||
| 14 | + } | ||
| 15 | + function throwInPromiseUncaught() { | ||
| 16 | + new Promise(function promiseUncaught() { throw new Error(); }); | ||
| 17 | + } | ||
| 18 | + function throwInMapConstructor() { new Map('a'); } | ||
| 10 | 19 | function schedule(f) { setTimeout(f, 0); } | |
| 11 | 20 | `); | |
| 12 | 21 | ||
@@ -22,4 +31,10 @@ Protocol.Debugger.onPaused(message => { | |||
| 22 | 31 | Protocol.Runtime.evaluate({ "expression": "schedule(throwCaught);" }) | |
| 23 | 32 | .then(() => Protocol.Runtime.evaluate( | |
| 24 | 33 | { "expression": "schedule(throwUncaught);" })) | |
| 25 | - .then(() => InspectorTest.completeTest()); | ||
| 34 | + .then(() => Protocol.Runtime.evaluate( | ||
| 35 | + { "expression": "schedule(throwInPromiseCaught);"})) | ||
| 36 | + .then(() => Protocol.Runtime.evaluate( | ||
| 37 | + { "expression": "schedule(throwInPromiseUncaught);"})) | ||
| 38 | + .then(() => Protocol.Runtime.evaluate( | ||
| 39 | + { "expression": "schedule(throwInMapConstructor);"})) | ||
| 40 | + .then(() => InspectorTest.completeTest()); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments