[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 <rmcilroy@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47064}
This commit is contained in:
Michael Starzinger 2017-08-01 18:00:37 +02:00 committed by Commit Bot
parent 577cb0aa6b
commit 5572a6ec73
2 changed files with 14 additions and 0 deletions

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