diff options
Diffstat (limited to 'deps/v8/test/message/fail')
8 files changed, 53 insertions, 4 deletions
diff --git a/deps/v8/test/message/fail/class-fields-computed.js b/deps/v8/test/message/fail/class-fields-computed.js new file mode 100644 index 0000000000..d9b41906ab --- /dev/null +++ b/deps/v8/test/message/fail/class-fields-computed.js @@ -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. +// +// Flags: --harmony-public-fields + +class X { + [foo()] = 1; +} diff --git a/deps/v8/test/message/fail/class-fields-computed.out b/deps/v8/test/message/fail/class-fields-computed.out new file mode 100644 index 0000000000..214b273af5 --- /dev/null +++ b/deps/v8/test/message/fail/class-fields-computed.out @@ -0,0 +1,5 @@ +*%(basename)s:8: ReferenceError: foo is not defined + [foo()] = 1; + ^ +ReferenceError: foo is not defined + at *%(basename)s:8:4
\ No newline at end of file diff --git a/deps/v8/test/message/fail/class-fields-static-throw.js b/deps/v8/test/message/fail/class-fields-static-throw.js new file mode 100644 index 0000000000..e7c9fec1ba --- /dev/null +++ b/deps/v8/test/message/fail/class-fields-static-throw.js @@ -0,0 +1,11 @@ +// 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. +// +// Flags: --harmony-public-fields --harmony-static-fields +// +// TODO(gsathya): Remove 'Function' from stack trace. + +class X { + static x = foo(); +} diff --git a/deps/v8/test/message/fail/class-fields-static-throw.out b/deps/v8/test/message/fail/class-fields-static-throw.out new file mode 100644 index 0000000000..a16b050bbd --- /dev/null +++ b/deps/v8/test/message/fail/class-fields-static-throw.out @@ -0,0 +1,6 @@ +*%(basename)s:10: ReferenceError: foo is not defined + static x = foo(); + ^ +ReferenceError: foo is not defined + at Function.<static_fields_initializer> (*%(basename)s:10:14) + at *%(basename)s:1:1
\ No newline at end of file diff --git a/deps/v8/test/message/fail/class-fields-throw.js b/deps/v8/test/message/fail/class-fields-throw.js new file mode 100644 index 0000000000..235a964ae8 --- /dev/null +++ b/deps/v8/test/message/fail/class-fields-throw.js @@ -0,0 +1,11 @@ +// 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. +// +// Flags: --harmony-public-fields + +class X { + x = foo(); +} + +new X; diff --git a/deps/v8/test/message/fail/class-fields-throw.out b/deps/v8/test/message/fail/class-fields-throw.out new file mode 100644 index 0000000000..f1036fde86 --- /dev/null +++ b/deps/v8/test/message/fail/class-fields-throw.out @@ -0,0 +1,7 @@ +*%(basename)s:8: ReferenceError: foo is not defined + x = foo(); + ^ +ReferenceError: foo is not defined + at X.<instance_fields_initializer> (*%(basename)s:8:7) + at new X (*%(basename)s:7:1) + at *%(basename)s:11:1
\ No newline at end of file diff --git a/deps/v8/test/message/fail/map-arg-non-iterable.out b/deps/v8/test/message/fail/map-arg-non-iterable.out index 78aa8ef033..988a8f8b7e 100644 --- a/deps/v8/test/message/fail/map-arg-non-iterable.out +++ b/deps/v8/test/message/fail/map-arg-non-iterable.out @@ -1,6 +1,6 @@ -*%(basename)s:5: TypeError: 1 is not iterable +*%(basename)s:5: TypeError: number 1 is not iterable (cannot read property Symbol(Symbol.iterator)) new Map(1); ^ -TypeError: 1 is not iterable +TypeError: number 1 is not iterable (cannot read property Symbol(Symbol.iterator)) at new Map (<anonymous>) at *%(basename)s:5:1 diff --git a/deps/v8/test/message/fail/undefined-keyed-property.out b/deps/v8/test/message/fail/undefined-keyed-property.out index 84673252eb..94600196ca 100644 --- a/deps/v8/test/message/fail/undefined-keyed-property.out +++ b/deps/v8/test/message/fail/undefined-keyed-property.out @@ -2,8 +2,8 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -*%(basename)s:6: TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined +*%(basename)s:6: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) x[Symbol.iterator]; ^ -TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined +TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) at *%(basename)s:6:2 |