v8/test/mjsunit/regress/regress-crbug-599067.js
ishell c7ff5766cf Display a meaningfull error message when trying to capture a stack trace to a proxy.
... instead of RUNTIME_ASSERT pointing to V8 guts.

BUG=chromium:599067
LOG=N

Review URL: https://codereview.chromium.org/1844223004

Cr-Commit-Position: refs/heads/master@{#35227}
2016-04-04 08:37:30 +00:00

12 lines
339 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.
try {
var o = {};
var p = new Proxy({}, o);
Error.captureStackTrace(p);
} catch(e) {
assertEquals("Cannot pass private property name to proxy trap", e.message);
}