summaryrefslogtreecommitdiff
path: root/deps/v8/test/message/regress/fail
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/message/regress/fail')
-rw-r--r--deps/v8/test/message/regress/fail/regress-1527.js33
-rw-r--r--deps/v8/test/message/regress/fail/regress-1527.out32
-rw-r--r--deps/v8/test/message/regress/fail/regress-3995.js7
-rw-r--r--deps/v8/test/message/regress/fail/regress-3995.out10
-rw-r--r--deps/v8/test/message/regress/fail/regress-4266.js11
-rw-r--r--deps/v8/test/message/regress/fail/regress-4266.out10
-rw-r--r--deps/v8/test/message/regress/fail/regress-5727.js11
-rw-r--r--deps/v8/test/message/regress/fail/regress-5727.out11
-rw-r--r--deps/v8/test/message/regress/fail/regress-73.js33
-rw-r--r--deps/v8/test/message/regress/fail/regress-73.out30
-rw-r--r--deps/v8/test/message/regress/fail/regress-75.js32
-rw-r--r--deps/v8/test/message/regress/fail/regress-75.out30
-rw-r--r--deps/v8/test/message/regress/fail/regress-crbug-661579.js12
-rw-r--r--deps/v8/test/message/regress/fail/regress-crbug-661579.out11
-rw-r--r--deps/v8/test/message/regress/fail/regress-crbug-669017.js5
-rw-r--r--deps/v8/test/message/regress/fail/regress-crbug-669017.out8
-rw-r--r--deps/v8/test/message/regress/fail/regress-crbug-691194.js5
-rw-r--r--deps/v8/test/message/regress/fail/regress-crbug-691194.out10
18 files changed, 301 insertions, 0 deletions
diff --git a/deps/v8/test/message/regress/fail/regress-1527.js b/deps/v8/test/message/regress/fail/regress-1527.js
new file mode 100644
index 0000000000..682e386d3d
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-1527.js
@@ -0,0 +1,33 @@
+// Copyright 2011 the V8 project authors. All rights reserved.
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following
+// disclaimer in the documentation and/or other materials provided
+// with the distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived
+// from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+var o1 = {foo: 'bar'};
+var o2 = {
+ 1: 'blah',
+ 2: o1.foo,
+ 3: foo
+}
diff --git a/deps/v8/test/message/regress/fail/regress-1527.out b/deps/v8/test/message/regress/fail/regress-1527.out
new file mode 100644
index 0000000000..dc17fb3517
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-1527.out
@@ -0,0 +1,32 @@
+# Copyright 2011 the V8 project authors. All rights reserved.
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials provided
+# with the distribution.
+# * Neither the name of Google Inc. nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*%(basename)s:32: ReferenceError: foo is not defined
+ 3: foo
+ ^
+ReferenceError: foo is not defined
+ at *%(basename)s:32:6
diff --git a/deps/v8/test/message/regress/fail/regress-3995.js b/deps/v8/test/message/regress/fail/regress-3995.js
new file mode 100644
index 0000000000..ba84bc0965
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-3995.js
@@ -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() {
+ throw new Error("boom");
+})();
diff --git a/deps/v8/test/message/regress/fail/regress-3995.out b/deps/v8/test/message/regress/fail/regress-3995.out
new file mode 100644
index 0000000000..e4f5b31d1f
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-3995.out
@@ -0,0 +1,10 @@
+# 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.
+
+*%(basename)s:6: Error: boom
+ throw new Error("boom");
+ ^
+Error: boom
+ at *%(basename)s:6:9
+ at *%(basename)s:7:3
diff --git a/deps/v8/test/message/regress/fail/regress-4266.js b/deps/v8/test/message/regress/fail/regress-4266.js
new file mode 100644
index 0000000000..552176bccf
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-4266.js
@@ -0,0 +1,11 @@
+// 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() {
+ try {
+ [].foo();
+ } catch (e) {
+ throw e;
+ }
+})();
diff --git a/deps/v8/test/message/regress/fail/regress-4266.out b/deps/v8/test/message/regress/fail/regress-4266.out
new file mode 100644
index 0000000000..d31541debe
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-4266.out
@@ -0,0 +1,10 @@
+# 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.
+
+*%(basename)s:9: TypeError: [].foo is not a function
+ throw e;
+ ^
+TypeError: [].foo is not a function
+ at *%(basename)s:7:8
+ at *%(basename)s:11:3
diff --git a/deps/v8/test/message/regress/fail/regress-5727.js b/deps/v8/test/message/regress/fail/regress-5727.js
new file mode 100644
index 0000000000..ac26d1b910
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-5727.js
@@ -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.
+
+function Foo(do_throw) {
+ if (do_throw) throw new Error("get me outta here");
+}
+var foo = new Foo(false);
+(function caller() {
+ Foo.call(foo, true);
+})();
diff --git a/deps/v8/test/message/regress/fail/regress-5727.out b/deps/v8/test/message/regress/fail/regress-5727.out
new file mode 100644
index 0000000000..8eb800a3c8
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-5727.out
@@ -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.
+
+*%(basename)s:6: Error: get me outta here
+ if (do_throw) throw new Error("get me outta here");
+ ^
+Error: get me outta here
+ at Foo (*%(basename)s:6:23)
+ at caller (*%(basename)s:10:7)
+ at *%(basename)s:11:3
diff --git a/deps/v8/test/message/regress/fail/regress-73.js b/deps/v8/test/message/regress/fail/regress-73.js
new file mode 100644
index 0000000000..137b731fc9
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-73.js
@@ -0,0 +1,33 @@
+// Copyright 2008 the V8 project authors. All rights reserved.
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following
+// disclaimer in the documentation and/or other materials provided
+// with the distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived
+// from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+try {
+ throw 'a';
+} catch (e) {
+ throw 'b';
+ print('c');
+}
diff --git a/deps/v8/test/message/regress/fail/regress-73.out b/deps/v8/test/message/regress/fail/regress-73.out
new file mode 100644
index 0000000000..28606dd8fa
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-73.out
@@ -0,0 +1,30 @@
+# Copyright 2008 the V8 project authors. All rights reserved.
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials provided
+# with the distribution.
+# * Neither the name of Google Inc. nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*%(basename)s:31: b
+ throw 'b';
+ ^
diff --git a/deps/v8/test/message/regress/fail/regress-75.js b/deps/v8/test/message/regress/fail/regress-75.js
new file mode 100644
index 0000000000..428fac91d1
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-75.js
@@ -0,0 +1,32 @@
+// Copyright 2008 the V8 project authors. All rights reserved.
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following
+// disclaimer in the documentation and/or other materials provided
+// with the distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived
+// from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+try {
+ throw "foo";
+} finally {
+ "bar";
+}
diff --git a/deps/v8/test/message/regress/fail/regress-75.out b/deps/v8/test/message/regress/fail/regress-75.out
new file mode 100644
index 0000000000..336d4cee51
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-75.out
@@ -0,0 +1,30 @@
+# Copyright 2008 the V8 project authors. All rights reserved.
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials provided
+# with the distribution.
+# * Neither the name of Google Inc. nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*%(basename)s:29: foo
+ throw "foo";
+ ^
diff --git a/deps/v8/test/message/regress/fail/regress-crbug-661579.js b/deps/v8/test/message/regress/fail/regress-crbug-661579.js
new file mode 100644
index 0000000000..d5c574cbda
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-crbug-661579.js
@@ -0,0 +1,12 @@
+// 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 a = {};
+function foo() {
+ a.push();
+}
+function bar() {
+ foo();
+}
+bar();
diff --git a/deps/v8/test/message/regress/fail/regress-crbug-661579.out b/deps/v8/test/message/regress/fail/regress-crbug-661579.out
new file mode 100644
index 0000000000..72cca79bb1
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-crbug-661579.out
@@ -0,0 +1,11 @@
+# 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:7: TypeError: a.push is not a function
+ a.push();
+ ^
+TypeError: a.push is not a function
+ at foo (*%(basename)s:7:5)
+ at bar (*%(basename)s:10:3)
+ at *%(basename)s:12:1
diff --git a/deps/v8/test/message/regress/fail/regress-crbug-669017.js b/deps/v8/test/message/regress/fail/regress-crbug-669017.js
new file mode 100644
index 0000000000..a8d76ecacd
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-crbug-669017.js
@@ -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.
+
+1073741824O0
diff --git a/deps/v8/test/message/regress/fail/regress-crbug-669017.out b/deps/v8/test/message/regress/fail/regress-crbug-669017.out
new file mode 100644
index 0000000000..c2589e7a15
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-crbug-669017.out
@@ -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.
+
+*%(basename)s:5: SyntaxError: Invalid or unexpected token
+1073741824O0
+^^^^^^^^^^
+SyntaxError: Invalid or unexpected token
diff --git a/deps/v8/test/message/regress/fail/regress-crbug-691194.js b/deps/v8/test/message/regress/fail/regress-crbug-691194.js
new file mode 100644
index 0000000000..fc7a121e38
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-crbug-691194.js
@@ -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.
+
+"foo".repeat(1 << 30)
diff --git a/deps/v8/test/message/regress/fail/regress-crbug-691194.out b/deps/v8/test/message/regress/fail/regress-crbug-691194.out
new file mode 100644
index 0000000000..43453900db
--- /dev/null
+++ b/deps/v8/test/message/regress/fail/regress-crbug-691194.out
@@ -0,0 +1,10 @@
+# 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:5: RangeError: Invalid string length
+"foo".repeat(1 << 30)
+ ^
+RangeError: Invalid string length
+ at String.repeat (<anonymous>)
+ at *%(basename)s:5:7