mirror of
https://github.com/tc39/test262.git
synced 2025-05-28 02:30:29 +02:00
23 lines
626 B
Plaintext
23 lines
626 B
Plaintext
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
path: language/statements/try/dstr-
|
|
name: try statement
|
|
esid: sec-runtime-semantics-catchclauseevaluation
|
|
es6id: 13.15.7
|
|
features: [destructuring-binding]
|
|
info: |
|
|
Catch : catch ( CatchParameter ) Block
|
|
|
|
[...]
|
|
5. Let status be the result of performing BindingInitialization for
|
|
CatchParameter passing thrownValue and catchEnv as arguments.
|
|
[...]
|
|
---*/
|
|
|
|
assert.throws(/*{ error }*/, function() {
|
|
try {
|
|
throw /*{ vals }*/;
|
|
} catch (/*{ elems }*/) {}
|
|
});
|