9211dee01a
This ports a large portion of Error methods to C++, including the constructor, stack setter and getter, and Error.prototype.toString. BUG= Committed: https://crrev.com/5742da056a290caa13a0b8717ddb1e43424e0d31 Review-Url: https://codereview.chromium.org/2142933003 Cr-Original-Commit-Position: refs/heads/master@{#37870} Cr-Commit-Position: refs/heads/master@{#37908}
12 lines
308 B
JavaScript
12 lines
308 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("invalid_argument", e.message);
|
|
}
|