Files
Kmake/deps/v8/test/mjsunit/regress/regress-1428034.js
2026-05-26 23:36:42 -07:00

22 lines
404 B
JavaScript

// Copyright 2023 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.
//
// Flags: --stress-lazy-source-positions
eval(`
var f = (
a = function in_arrowhead_args() {
return function inner() {
b = 42;
};
},
b = 1,
) => {
assertEquals(1, b);
a()();
assertEquals(42, b);
};
f();
`);