Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

16
deps/v8/test/message/BUILD.gn vendored Normal file
View File

@ -0,0 +1,16 @@
# 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.
group("v8_message") {
testonly = true
data_deps = [
"../..:d8",
"../../tools:v8_testrunner",
]
data = [
"./",
]
}

23
deps/v8/test/message/README.md vendored Normal file
View File

@ -0,0 +1,23 @@
# JavaScript tests with expected output
Tests in `test/message` pass if the output matches the expected output.
Message tests are particularly useful when checking for exact error messages.
Tests and their expected output must have the same filename, with the `.js` and
`.out` extension.
```
foo.js
foo.out
```
You can use a regex in the expected output instead of the exact
path:
```
*%(basename)s:7: SyntaxError: Detected cycle while resolving name 'a'
```
Empty lines are ignored in the comparison, but whitespaces are not.
Exact details of the test runner are in [testcfg.py](testcfg.py).

View File

@ -0,0 +1,16 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module() {
"use asm"
function f(a) {
a = a | 0;
b = (a + 23) | 0;
return b | 0;
}
return { f:f };
}
Module().f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:11: Invalid asm.js: Undeclared assignment target

View File

@ -0,0 +1,19 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
// Violates asm.js because use of {g} in {f} has return type different from {g}.
function Module() {
"use asm"
function g() {
return 2.3;
}
function f() {
return g() | 0;
}
return { f:f };
}
Module().f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:15: Invalid asm.js: Function use doesn't match definition

View File

@ -0,0 +1,19 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
// Violates asm.js because {g} has return type different from use of {g} in {f}.
function Module() {
"use asm"
function f() {
return g() | 0;
}
function g() {
return 2.3;
}
return { f:f };
}
Module().f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:17: Invalid asm.js: Function definition doesn't match use

View File

@ -0,0 +1,15 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
// Violates asm.js because symbol {f} is defined as module function twice.
function Module() {
"use asm"
function f() {}
function f() {}
return { f:f };
}
Module().f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:12: Invalid asm.js: Function redefined

View File

@ -0,0 +1,14 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module() {
"use asm"
function f() {
g();
}
return { f:f };
}
Module();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:13: Invalid asm.js: Undefined function

View File

@ -0,0 +1,15 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
// Violates asm.js because symbol {f} is used as module variable and function.
function Module() {
"use asm"
var f = 0;
function f() {}
return { f:f };
}
Module();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:12: Invalid asm.js: Function name collides with variable

View File

@ -0,0 +1,11 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module(stdlib, foreign, heap) {
"use asm"
var x = foreign.x | 1;
}
Module(this, { x:0 });

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:9: Invalid asm.js: Expected |0 type annotation for foreign integer import

View File

@ -0,0 +1,11 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module(stdlib, foreign, heap) {
"use asm"
var x = +stdlib.x;
}
Module(this, { x:0 });

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:9: Invalid asm.js: Unexpected token

View File

@ -0,0 +1,15 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module(stdlib, foreign, heap) {
"use asm"
var a = new stdlib.Int8Array(heap);
function f() {
return a[0] | 0;
}
return { f:f };
}
Module(this, {}, new ArrayBuffer(1)).f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:7: Linking failure in asm.js: Invalid heap size

View File

@ -0,0 +1,15 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module(stdlib, foreign, heap) {
"use asm"
var pi = stdlib.Math.PI;
function f() {
return +pi;
}
return { f:f };
}
Module({ Math: { PI:23 }}).f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:7: Linking failure in asm.js: Unexpected stdlib member

View File

@ -0,0 +1,15 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module(stdlib, foreign, heap) {
"use asm"
var a = new stdlib.Int8Array(heap);
function f() {
return a[0] | 0;
}
return { f:f };
}
Module(this).f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:7: Linking failure in asm.js: Requires heap buffer

View File

@ -0,0 +1,16 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module() {
"use asm"
function f(a) {
var b = 0;
b = (a + 23) | 0;
return b | 0;
}
return { f:f };
}
Module().f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:11: Invalid asm.js: Unexpected token

View File

@ -0,0 +1,17 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module() {
"use asm"
function f(a) {
a = a | 0;
var b = 0;
b = (a + 23) | 0;
return b;
}
return { f:f };
}
Module().f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:13: Invalid asm.js: Invalid return type

View File

@ -0,0 +1,22 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
// Violates asm.js {funTable} definition doesn't match the use in {f}.
function Module() {
"use asm"
function f(a) {
a = a | 0;
a = funTable[a & 0](a | 0) | 0;
return a | 0;
}
function g() {
return 2.3;
}
var funTable = [ g ];
return { f:f };
}
Module().f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:19: Invalid asm.js: Function table definition doesn't match use

View File

@ -0,0 +1,24 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
// Violates asm.js {funTable} use in {f} doesn't match its use in {g}.
function Module() {
"use asm"
function f(a) {
a = a | 0;
a = funTable[a & 0](a | 0) | 0;
return a | 0;
}
function g(a) {
a = a | 0;
a = funTable[a & 0](2.3) | 0;
return a | 0;
}
var funTable = [ f ];
return { f:f, g:g };
}
Module();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:18: Invalid asm.js: Function use doesn't match definition

View File

@ -0,0 +1,20 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module() {
"use asm"
function f(a) {
a = a | 0;
funTable[a & 0](a | 0);
}
function g(a) {
a = a | 0;
}
var funTable = [ f ];
var funTable = [ g ];
return { f:f };
}
Module().f();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:17: Invalid asm.js: Function table redefined

View File

@ -0,0 +1,15 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module() {
"use asm"
function f(a) {
a = a | 0;
funTable[a & 0](a | 0);
}
return { f:f };
}
Module();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:14: Invalid asm.js: Undefined function table

View File

@ -0,0 +1,14 @@
// Copyright 2017 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: --validate-asm --no-stress-validate-asm --no-suppress-asm-messages
function Module() {
"use asm"
var funTable = 0;
function f() {}
var funTable = [ f ];
return { f:f };
}
Module();

View File

@ -0,0 +1,5 @@
# Copyright 2017 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.
*%(basename)s:11: Invalid asm.js: Function table name collides

0
deps/v8/test/message/empty.js vendored Normal file
View File

0
deps/v8/test/message/empty.out vendored Normal file
View File

View File

@ -0,0 +1,9 @@
// Copyright 2017 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.
async function f() {
let [await b] = [];
return b;
}
f();

View File

@ -0,0 +1,4 @@
*%(basename)s:6: SyntaxError: Invalid destructuring assignment target
let [await b] = [];
^^^^^^^
SyntaxError: Invalid destructuring assignment target

View File

@ -0,0 +1,5 @@
// Copyright 2022 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.
[...(a={})]

View File

@ -0,0 +1,5 @@
*%(basename)s:5: TypeError: a is not iterable
[...(a={})]
^
TypeError: a is not iterable
at *%(basename)s:5:7

View File

@ -0,0 +1,7 @@
// Copyright 2015 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.
//
//
...x => 10

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Unexpected token '...'
...x => 10
^^^
SyntaxError: Unexpected token '...'

View File

@ -0,0 +1,5 @@
// Copyright 2015 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.
(b, a, a, d) => a

View File

@ -0,0 +1,4 @@
*%(basename)s:5: SyntaxError: Duplicate parameter name not allowed in this context
(b, a, a, d) => a
^
SyntaxError: Duplicate parameter name not allowed in this context

View File

@ -0,0 +1,8 @@
// Copyright 2016 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.
//
//
var f = (a, ...x = 10) => x;
f(1, 2, 3, 4, 5);

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Rest parameter may not have a default initializer
var f = (a, ...x = 10) => x;
^
SyntaxError: Rest parameter may not have a default initializer

View File

@ -0,0 +1,8 @@
// Copyright 2016 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.
//
//
var f = (...x = 10) => x;
f(1, 2, 3, 4, 5);

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Rest parameter may not have a default initializer
var f = (...x = 10) => x;
^
SyntaxError: Rest parameter may not have a default initializer

View File

@ -0,0 +1,7 @@
// Copyright 2015 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.
//
//
function foo() { return(); }

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Unexpected token ')'
function foo() { return(); }
^
SyntaxError: Unexpected token ')'

View File

@ -0,0 +1,7 @@
// Copyright 2015 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.
//
//
(w, ...x, y) => 10

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Rest parameter must be last formal parameter
(w, ...x, y) => 10
^
SyntaxError: Rest parameter must be last formal parameter

View File

@ -0,0 +1,7 @@
// Copyright 2015 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.
//
//
(...x, y) => 10

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Rest parameter must be last formal parameter
(...x, y) => 10
^
SyntaxError: Rest parameter must be last formal parameter

View File

@ -0,0 +1,6 @@
// Copyright 2015 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.
"use strict";
eval => 42

View File

@ -0,0 +1,4 @@
*%(basename)s:6: SyntaxError: Unexpected eval or arguments in strict mode
eval => 42
^^^^
SyntaxError: Unexpected eval or arguments in strict mode

View File

@ -0,0 +1,7 @@
// Copyright 2015 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.
//
//
(w, ...x, ...y) => 10

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Rest parameter must be last formal parameter
(w, ...x, ...y) => 10
^
SyntaxError: Rest parameter must be last formal parameter

View File

@ -0,0 +1,8 @@
// Copyright 2016 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.
//
//
var f = async (a, ...x = 10) => x;
f(1, 2, 3, 4, 5);

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Rest parameter may not have a default initializer
var f = async (a, ...x = 10) => x;
^^
SyntaxError: Rest parameter may not have a default initializer

View File

@ -0,0 +1,8 @@
// Copyright 2016 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.
//
//
var f = async (...x = 10) => x;
f(1, 2, 3, 4, 5);

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Rest parameter may not have a default initializer
var f = async (...x = 10) => x;
^^
SyntaxError: Rest parameter may not have a default initializer

View File

@ -0,0 +1,7 @@
// Copyright 2017 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.
//
//
async (...x, y) => 10

View File

@ -0,0 +1,5 @@
*%(basename)s:7: SyntaxError: Rest parameter must be last formal parameter
async (...x, y) => 10
^
SyntaxError: Rest parameter must be last formal parameter

View File

@ -0,0 +1,5 @@
// Copyright 2017 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.
function f() { await Promise.resolve(); }

View File

@ -0,0 +1,4 @@
*%(basename)s:5: SyntaxError: await is only valid in async functions and the top level bodies of modules
function f() { await Promise.resolve(); }
^^^^^
SyntaxError: await is only valid in async functions and the top level bodies of modules

View File

@ -0,0 +1,8 @@
// 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.
function f(async) {
async()
}
f()

View File

@ -0,0 +1,6 @@
*%(basename)s:6: TypeError: async is not a function
async()
^
TypeError: async is not a function
at f (*%(basename)s:6:3)
at *%(basename)s:8:1

View File

@ -0,0 +1,8 @@
// 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.
function f(await) {
await()
}
f()

View File

@ -0,0 +1,7 @@
*%(basename)s:6: TypeError: await is not a function
await()
^
TypeError: await is not a function
at f (*%(basename)s:6:3)
at *%(basename)s:8:1

View File

@ -0,0 +1,9 @@
// 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.
const config = {
min: Math.min(1, 2),
func: myfunc(),
}

View File

@ -0,0 +1,5 @@
*%(basename)s:8: ReferenceError: myfunc is not defined
func: myfunc(),
^
ReferenceError: myfunc is not defined
at *%(basename)s:8:9

8
deps/v8/test/message/fail/call-let.js vendored Normal file
View File

@ -0,0 +1,8 @@
// 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.
function f(let) {
let()
}
f()

View File

@ -0,0 +1,6 @@
*%(basename)s:6: TypeError: let is not a function
let()
^
TypeError: let is not a function
at f (*%(basename)s:6:3)
at *%(basename)s:8:1

View File

@ -0,0 +1,8 @@
// Copyright 2016 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.
// Note that {unescape} is an example of a non-constructable function. If that
// ever changes and this test needs to be adapted, make sure to choose another
// non-constructable {JSFunction} object instead.
new unescape();

View File

@ -0,0 +1,9 @@
# Copyright 2016 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.
*%(basename)s:8: TypeError: unescape is not a constructor
new unescape();
^
TypeError: unescape is not a constructor
at *%(basename)s:8:1

View File

@ -0,0 +1,6 @@
// Copyright 2016 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.
var non_callable = 0;
new non_callable();

View File

@ -0,0 +1,9 @@
# Copyright 2016 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.
*%(basename)s:6: TypeError: non_callable is not a constructor
new non_callable();
^
TypeError: non_callable is not a constructor
at *%(basename)s:6:1

View File

@ -0,0 +1,6 @@
// Copyright 2016 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.
var non_callable = 0;
non_callable();

View File

@ -0,0 +1,9 @@
# Copyright 2016 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.
*%(basename)s:6: TypeError: non_callable is not a function
non_callable();
^
TypeError: non_callable is not a function
at *%(basename)s:6:1

View File

@ -0,0 +1,8 @@
// 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.
function f(static) {
static()
}
f()

View File

@ -0,0 +1,6 @@
*%(basename)s:6: TypeError: static is not a function
static()
^
TypeError: static is not a function
at f (*%(basename)s:6:3)
at *%(basename)s:8:1

View File

@ -0,0 +1,5 @@
// Copyright 2016 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.
new not_declared();

View File

@ -0,0 +1,9 @@
# Copyright 2016 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.
*%(basename)s:5: ReferenceError: not_declared is not defined
new not_declared();
^
ReferenceError: not_declared is not defined
at *%(basename)s:5:1

View File

@ -0,0 +1,5 @@
// Copyright 2016 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.
not_declared();

View File

@ -0,0 +1,9 @@
# Copyright 2016 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.
*%(basename)s:5: ReferenceError: not_declared is not defined
not_declared();
^
ReferenceError: not_declared is not defined
at *%(basename)s:5:1

View File

@ -0,0 +1,8 @@
// 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.
function f(yield) {
yield()
}
f()

View File

@ -0,0 +1,6 @@
*%(basename)s:6: TypeError: yield is not a function
yield()
^
TypeError: yield is not a function
at f (*%(basename)s:6:3)
at *%(basename)s:8:1

View File

@ -0,0 +1,12 @@
// 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.
class C {
set #foo(val) {}
constructor() {
this.#foo++;
}
}
new C();

View File

@ -0,0 +1,9 @@
# 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.
*%(basename)s:8: TypeError: '#foo' was defined without a getter
this.#foo++;
^
TypeError: '#foo' was defined without a getter
at new C (*%(basename)s:8:10)
at *%(basename)s:12:1

View File

@ -0,0 +1,17 @@
// 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.
class C {
set #a(val) {}
setA(obj, val) { obj.#a = val; }
constructor() {
class D {
get #a() {}
}
this.setA(new D(), 1);
}
}
new C;

View File

@ -0,0 +1,10 @@
# 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.
*%(basename)s:7: TypeError: Receiver must be an instance of class C
setA(obj, val) { obj.#a = val; }
^
TypeError: Receiver must be an instance of class C
at C.setA (*%(basename)s:7:24)
at new C (*%(basename)s:13:10)
at *%(basename)s:17:1

View File

@ -0,0 +1,11 @@
// 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.
class C {
set #a(val) {}
constructor() {
const a = this.#a;
}
}
new C;

View File

@ -0,0 +1,9 @@
# 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.
*%(basename)s:8: TypeError: '#a' was defined without a getter
const a = this.#a;
^
TypeError: '#a' was defined without a getter
at new C (*%(basename)s:8:20)
at *%(basename)s:11:1

View File

@ -0,0 +1,11 @@
// 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.
class C {
get #a() {}
constructor() {
this.#a = 1;
}
}
new C;

View File

@ -0,0 +1,9 @@
# 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.
*%(basename)s:8: TypeError: '#a' was defined without a setter
this.#a = 1;
^
TypeError: '#a' was defined without a setter
at new C (*%(basename)s:8:10)
at *%(basename)s:11:1

Some files were not shown because too many files have changed in this diff Show More