diff options
Diffstat (limited to 'deps/v8/test/mjsunit')
3 files changed, 28 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-1009728.js b/deps/v8/test/mjsunit/regress/regress-crbug-1009728.js new file mode 100644 index 0000000000..2632368910 --- /dev/null +++ b/deps/v8/test/mjsunit/regress/regress-crbug-1009728.js @@ -0,0 +1,15 @@ +// Copyright 2019 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 + +function foo(x) { + (function bar() { + { + x: 1 + } + function f() {} + }); +} +foo(); diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-1011596-module.mjs b/deps/v8/test/mjsunit/regress/regress-crbug-1011596-module.mjs new file mode 100644 index 0000000000..2ad389f7a0 --- /dev/null +++ b/deps/v8/test/mjsunit/regress/regress-crbug-1011596-module.mjs @@ -0,0 +1,8 @@ +// Copyright 2019 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. + +export function foo() { + { label: 1 } + return 42; +} diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-1011596.mjs b/deps/v8/test/mjsunit/regress/regress-crbug-1011596.mjs new file mode 100644 index 0000000000..c223a3a1b5 --- /dev/null +++ b/deps/v8/test/mjsunit/regress/regress-crbug-1011596.mjs @@ -0,0 +1,5 @@ +// Copyright 2019 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. + +import "./regress-crbug-1011596-module.mjs" |