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

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

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 {
get #foo() {}
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 setter
this.#foo++;
^
TypeError: '#foo' was defined without a setter
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 {
get #a() {}
getA(obj) { return obj.#a; }
constructor() {
class D {
set #a(val) {}
}
this.getA(new D());
}
}
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
getA(obj) { return obj.#a; }
^
TypeError: Receiver must be an instance of class C
at C.getA (*%(basename)s:7:26)
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 {
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

View File

@ -0,0 +1,10 @@
// Copyright 2014 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';
class C {
get constructor() {}
}

View File

@ -0,0 +1,7 @@
# Copyright 2014 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: SyntaxError: Class constructor may not be an accessor
get constructor() {}
^^^^^^^^^^^
SyntaxError: Class constructor may not be an accessor

View File

@ -0,0 +1,10 @@
// Copyright 2014 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';
class C {
*constructor() {}
}

View File

@ -0,0 +1,7 @@
# Copyright 2014 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: SyntaxError: Class constructor may not be a generator
*constructor() {}
^^^^^^^^^^^
SyntaxError: Class constructor may not be a generator

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.
class X {
constructor = function() {};
}

View File

@ -0,0 +1,4 @@
*%(basename)s:6: SyntaxError: Classes may not have a field named 'constructor'
constructor = function() {};
^^^^^^^^^^^
SyntaxError: Classes may not have a field named 'constructor'

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.
class X {
static constructor = function() {};
}

View File

@ -0,0 +1,4 @@
*%(basename)s:6: SyntaxError: Classes may not have a field named 'constructor'
static constructor = function() {};
^^^^^^^^^^^
SyntaxError: Classes may not have a field named 'constructor'

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.
class X {
static prototype = function() {};
}

View File

@ -0,0 +1,4 @@
*%(basename)s:6: SyntaxError: Classes may not have a static property named 'prototype'
static prototype = function() {};
^^^^^^^^^
SyntaxError: Classes may not have a static property named 'prototype'

View File

@ -0,0 +1,7 @@
// 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.
class X {
[foo()] = 1;
}

View File

@ -0,0 +1,5 @@
*%(basename)s:6: ReferenceError: foo is not defined
[foo()] = 1;
^
ReferenceError: foo is not defined
at *%(basename)s:6:4

View File

@ -0,0 +1,14 @@
// 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 Y {
makeClass() {
return class {
setA(val) { this.#a = val; }
getA() { return this.#a; }
getB() { return this.#b; }
}
}
#a;
}

View File

@ -0,0 +1,4 @@
*%(basename)s:10: SyntaxError: Private field '#b' must be declared in an enclosing class
getB() { return this.#b; }
^
SyntaxError: Private field '#b' must be declared in an enclosing class

View File

@ -0,0 +1,6 @@
// 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 Foo { #x = 42; }
new Foo().#x;

View File

@ -0,0 +1,4 @@
*%(basename)s:6: SyntaxError: Private field '#x' must be declared in an enclosing class
new Foo().#x;
^
SyntaxError: Private field '#x' must be declared in an enclosing class

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.
var o = {};
class C {
#a = 0;
[o.#a](){}
}

View File

@ -0,0 +1,5 @@
*%(basename)s:9: TypeError: Cannot read private member #a from an object whose class did not declare it
[o.#a](){}
^
TypeError: Cannot read private member #a from an object whose class did not declare it
at *%(basename)s:9:8

View File

@ -0,0 +1,12 @@
// 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.
class X {
#x;
constructor() {
({}).#x = 1;
}
}
new X;

View File

@ -0,0 +1,6 @@
*%(basename)s:8: TypeError: Cannot write private member #x to an object whose class did not declare it
({}).#x = 1;
^
TypeError: Cannot write private member #x to an object whose class did not declare it
at new X (*%(basename)s:8:13)
at *%(basename)s:12: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.
class X {
constructor() {
this.#x = 1;
}
}

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Private field '#x' must be declared in an enclosing class
this.#x = 1;
^
SyntaxError: Private field '#x' must be declared in an enclosing class

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.
class X {
constructor() {
this.#x = 1;
}
}

View File

@ -0,0 +1,4 @@
*%(basename)s:7: SyntaxError: Private field '#x' must be declared in an enclosing class
this.#x = 1;
^
SyntaxError: Private field '#x' must be declared in an enclosing class

View File

@ -0,0 +1,10 @@
// 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.
class X {
#x;
eq(o) { return this.#x === o.#x; }
}
new X().eq({});

View File

@ -0,0 +1,6 @@
*%(basename)s:7: TypeError: Cannot read private member #x from an object whose class did not declare it
eq(o) { return this.#x === o.#x; }
^
TypeError: Cannot read private member #x from an object whose class did not declare it
at X.eq (*%(basename)s:7:32)
at *%(basename)s:10:9

View File

@ -0,0 +1,10 @@
// 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.
class X {
#x;
setX(o, val) { o.#x = val; }
}
new X().setX({}, 1);

View File

@ -0,0 +1,6 @@
*%(basename)s:7: TypeError: Cannot write private member #x to an object whose class did not declare it
setX(o, val) { o.#x = val; }
^
TypeError: Cannot write private member #x to an object whose class did not declare it
at X.setX (*%(basename)s:7:23)
at *%(basename)s:10:9

View File

@ -0,0 +1,13 @@
// 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.
function x() {
class Foo {
constructor () {
class Bar {
x = this.#foo;
}
}
}
}

View File

@ -0,0 +1,4 @@
*%(basename)s:9: SyntaxError: Private field '#foo' must be declared in an enclosing class
x = this.#foo;
^
SyntaxError: Private field '#foo' must be declared in an enclosing class

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 A {
fn() {
class B {
getA() { return this.#b; }
}
}
}

View File

@ -0,0 +1,4 @@
*%(basename)s:8: SyntaxError: Private field '#b' must be declared in an enclosing class
getA() { return this.#b; }
^
SyntaxError: Private field '#b' must be declared in an enclosing class

View File

@ -0,0 +1,7 @@
// 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.
class X {
static x = foo();
}

View File

@ -0,0 +1,6 @@
*%(basename)s:6: ReferenceError: foo is not defined
static x = foo();
^
ReferenceError: foo is not defined
at <static_initializer> (*%(basename)s:6:14)
at *%(basename)s:1:1

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