From 5572a6ec73c65078d0691d591509da2dc739b526 Mon Sep 17 00:00:00 2001 From: Michael Starzinger Date: Tue, 1 Aug 2017 18:00:37 +0200 Subject: [PATCH] [test] Add call-undeclared-constructor message test. R=rmcilroy@chromium.org Change-Id: Ie5109ca54917c062ba70d55bd80cfad7832b5ea9 Reviewed-on: https://chromium-review.googlesource.com/595992 Reviewed-by: Ross McIlroy Commit-Queue: Michael Starzinger Cr-Commit-Position: refs/heads/master@{#47064} --- test/message/call-undeclared-constructor.js | 5 +++++ test/message/call-undeclared-constructor.out | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/message/call-undeclared-constructor.js create mode 100644 test/message/call-undeclared-constructor.out diff --git a/test/message/call-undeclared-constructor.js b/test/message/call-undeclared-constructor.js new file mode 100644 index 0000000000..e98fc1a24e --- /dev/null +++ b/test/message/call-undeclared-constructor.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. + +new not_declared(); diff --git a/test/message/call-undeclared-constructor.out b/test/message/call-undeclared-constructor.out new file mode 100644 index 0000000000..bbfa37c21b --- /dev/null +++ b/test/message/call-undeclared-constructor.out @@ -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