aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/message
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-05-28 08:46:21 -0400
committerRefael Ackermann <refack@gmail.com>2019-06-01 09:55:12 -0400
commited74896b1fae1c163b3906163f3bf46326618ddb (patch)
tree7fb05c5a19808e0c5cd95837528e9005999cf540 /deps/v8/test/message
parent2a850cd0664a4eee51f44d0bb8c2f7a3fe444154 (diff)
downloadandroid-node-v8-ed74896b1fae1c163b3906163f3bf46326618ddb.tar.gz
android-node-v8-ed74896b1fae1c163b3906163f3bf46326618ddb.tar.bz2
android-node-v8-ed74896b1fae1c163b3906163f3bf46326618ddb.zip
deps: update V8 to 7.5.288.22
PR-URL: https://github.com/nodejs/node/pull/27375 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/v8/test/message')
-rw-r--r--deps/v8/test/message/fail/class-fields-private-class-in-function.js16
-rw-r--r--deps/v8/test/message/fail/class-fields-private-class-in-function.out4
-rw-r--r--deps/v8/test/message/fail/class-fields-private-throw-in-module.js12
-rw-r--r--deps/v8/test/message/fail/class-fields-private-throw-in-module.out4
-rw-r--r--deps/v8/test/message/fail/class-fields-private-undefined-inner-class.js13
-rw-r--r--deps/v8/test/message/fail/class-fields-private-undefined-inner-class.out4
-rw-r--r--deps/v8/test/message/fail/list-format-style-narrow.js4
-rw-r--r--deps/v8/test/message/fail/list-format-style-narrow.out8
-rw-r--r--deps/v8/test/message/fail/missing-function-name.js5
-rw-r--r--deps/v8/test/message/fail/missing-function-name.out4
10 files changed, 62 insertions, 12 deletions
diff --git a/deps/v8/test/message/fail/class-fields-private-class-in-function.js b/deps/v8/test/message/fail/class-fields-private-class-in-function.js
new file mode 100644
index 0000000000..215e083962
--- /dev/null
+++ b/deps/v8/test/message/fail/class-fields-private-class-in-function.js
@@ -0,0 +1,16 @@
+// 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: --harmony-private-fields
+
+class Y {
+ makeClass() {
+ return class {
+ setA(val) { this.#a = val; }
+ getA() { return this.#a; }
+ getB() { return this.#b; }
+ }
+ }
+ #a;
+}
diff --git a/deps/v8/test/message/fail/class-fields-private-class-in-function.out b/deps/v8/test/message/fail/class-fields-private-class-in-function.out
new file mode 100644
index 0000000000..1e564497c5
--- /dev/null
+++ b/deps/v8/test/message/fail/class-fields-private-class-in-function.out
@@ -0,0 +1,4 @@
+*%(basename)s:12: SyntaxError: Undefined private field #b: must be declared in an enclosing class
+ getB() { return this.#b; }
+ ^
+SyntaxError: Undefined private field #b: must be declared in an enclosing class
diff --git a/deps/v8/test/message/fail/class-fields-private-throw-in-module.js b/deps/v8/test/message/fail/class-fields-private-throw-in-module.js
new file mode 100644
index 0000000000..4b90436f46
--- /dev/null
+++ b/deps/v8/test/message/fail/class-fields-private-throw-in-module.js
@@ -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.
+//
+// MODULE
+// Flags: --harmony-private-fields
+
+class X {
+ constructor() {
+ this.#x = 1;
+ }
+}
diff --git a/deps/v8/test/message/fail/class-fields-private-throw-in-module.out b/deps/v8/test/message/fail/class-fields-private-throw-in-module.out
new file mode 100644
index 0000000000..e63207a815
--- /dev/null
+++ b/deps/v8/test/message/fail/class-fields-private-throw-in-module.out
@@ -0,0 +1,4 @@
+*%(basename)s:10: SyntaxError: Undefined private field #x: must be declared in an enclosing class
+ this.#x = 1;
+ ^
+SyntaxError: Undefined private field #x: must be declared in an enclosing class \ No newline at end of file
diff --git a/deps/v8/test/message/fail/class-fields-private-undefined-inner-class.js b/deps/v8/test/message/fail/class-fields-private-undefined-inner-class.js
new file mode 100644
index 0000000000..1e115b61e7
--- /dev/null
+++ b/deps/v8/test/message/fail/class-fields-private-undefined-inner-class.js
@@ -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.
+//
+// Flags: --harmony-private-fields
+
+class A {
+ fn() {
+ class B {
+ getA() { return this.#b; }
+ }
+ }
+}
diff --git a/deps/v8/test/message/fail/class-fields-private-undefined-inner-class.out b/deps/v8/test/message/fail/class-fields-private-undefined-inner-class.out
new file mode 100644
index 0000000000..a2fb293968
--- /dev/null
+++ b/deps/v8/test/message/fail/class-fields-private-undefined-inner-class.out
@@ -0,0 +1,4 @@
+*%(basename)s:10: SyntaxError: Undefined private field #b: must be declared in an enclosing class
+ getA() { return this.#b; }
+ ^
+SyntaxError: Undefined private field #b: must be declared in an enclosing class
diff --git a/deps/v8/test/message/fail/list-format-style-narrow.js b/deps/v8/test/message/fail/list-format-style-narrow.js
deleted file mode 100644
index 9b731441ed..0000000000
--- a/deps/v8/test/message/fail/list-format-style-narrow.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// 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.
-new Intl.ListFormat("en", {style: 'narrow'})
diff --git a/deps/v8/test/message/fail/list-format-style-narrow.out b/deps/v8/test/message/fail/list-format-style-narrow.out
deleted file mode 100644
index 90047338c0..0000000000
--- a/deps/v8/test/message/fail/list-format-style-narrow.out
+++ /dev/null
@@ -1,8 +0,0 @@
-*%(basename)s:4: RangeError: When style is 'narrow', 'unit' is the only allowed value for the type option.
-new Intl.ListFormat("en", {style: 'narrow'})
-^
-RangeError: When style is 'narrow', 'unit' is the only allowed value for the type option.
- at new ListFormat (<anonymous>)
- at *%(basename)s:4:1
-
-
diff --git a/deps/v8/test/message/fail/missing-function-name.js b/deps/v8/test/message/fail/missing-function-name.js
new file mode 100644
index 0000000000..6aeb5b0f81
--- /dev/null
+++ b/deps/v8/test/message/fail/missing-function-name.js
@@ -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.
+
+function (){}
diff --git a/deps/v8/test/message/fail/missing-function-name.out b/deps/v8/test/message/fail/missing-function-name.out
new file mode 100644
index 0000000000..cebbde2457
--- /dev/null
+++ b/deps/v8/test/message/fail/missing-function-name.out
@@ -0,0 +1,4 @@
+*%(basename)s:5: SyntaxError: Function statements require a function name
+function (){}
+^^^^^^^^
+SyntaxError: Function statements require a function name