test/mjsunit/regress/regress-11491.js
// found in the LICENSE file.
found in the LICENSE file.
found in the LICENSE file .
function test() {
  const args = new Array(65535);
  function* gen() {}
  const c = gen.constructor.apply(null, args);
  c();
  c();
}
function test ( ) { const args = new Array ( 65535 ) ; function * gen ( ) { } const c = gen . constructor . apply ( null , args ) ; c ( ) ; c ( ) ; }
found in the LICENSE file.
found in the LICENSE file .
// Create a generator constructor with the maximum number of allowed parameters. // 'c' having 65535 parameters causes the parameters/registers fixed array // attached to the generator object to be considered a large object. // We call it twice so that it both covers the CreateJSGeneratorObject() C++ // runtime function as well as the CreateGeneratorObject() CSA builtin.