2b96c9d7c0
This fixes the message reported via the {TypeError} thrown when trying to call a non-constructable function as a constructor. Also adds some more related message tests for similar exceptions. R=bmeurer@chromium.org TEST=message/call-non-constructable BUG=chromium:661579 Review-Url: https://codereview.chromium.org/2523803003 Cr-Commit-Position: refs/heads/master@{#41220}
9 lines
392 B
JavaScript
9 lines
392 B
JavaScript
// 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.
|
|
|
|
// Note that {unescape} is an example of a non-constructable function. If that
|
|
// ever changes and this test needs to be adapted, make sure to choose another
|
|
// non-constructable {JSFunction} object instead.
|
|
new unescape();
|