obj-init-null.js (806B)
1 // This file was procedurally generated from the following sources: 2 // - src/dstr-binding/obj-init-null.case 3 // - src/dstr-binding/error/try.template 4 /*--- 5 description: Value specifed for object binding pattern must be object coercible (null) (try statement) 6 esid: sec-runtime-semantics-catchclauseevaluation 7 features: [destructuring-binding] 8 flags: [generated] 9 info: | 10 Catch : catch ( CatchParameter ) Block 11 12 [...] 13 5. Let status be the result of performing BindingInitialization for 14 CatchParameter passing thrownValue and catchEnv as arguments. 15 [...] 16 17 Runtime Semantics: BindingInitialization 18 19 ObjectBindingPattern : { } 20 21 1. Return NormalCompletion(empty). 22 ---*/ 23 24 assert.throws(TypeError, function() { 25 try { 26 throw null; 27 } catch ({}) {} 28 }); 29 30 reportCompare(0, 0);