| // Copyright 2018 the V8 project authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // Tests if class declarations in parameter list are correctly handled. |
| // Test object inside a class in a parameter list |
| // Test destructuring of class in parameters |
| (function f( {p, q} = class C { get [[] = ';']() {} } ) {})(); |
| // Test array destructuring of class in parameters |
| C[Symbol.iterator] = function() { |
| next: function() { return { done: true }; }, |
| (function f1([p, q] = class D extends C { get [[]]() {} }) { })(); |