469675ee3f
This replaces internal GetConstructorName with toStringTag, .constructor's name and class_name. This entirely changes how the name is computed for use in devtools. BUG=chromium:529177 LOG=n Review URL: https://codereview.chromium.org/1435273002 Cr-Commit-Position: refs/heads/master@{#32374}
11 lines
370 B
JavaScript
11 lines
370 B
JavaScript
// 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.
|
|
|
|
var error;
|
|
try { reference_error(); } catch (e) { error = e; }
|
|
toString = error.toString;
|
|
error.__proto__ = [];
|
|
assertEquals("Array: reference_error is not defined",
|
|
toString.call(error));
|