[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:
parent
577cb0aa6b
commit
5572a6ec73
5
test/message/call-undeclared-constructor.js
Normal file
5
test/message/call-undeclared-constructor.js
Normal 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();
|
9
test/message/call-undeclared-constructor.out
Normal file
9
test/message/call-undeclared-constructor.out
Normal 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
|
Loading…
Reference in New Issue
Block a user