blob: e37f72a054975615adc1bd4371351fb675cd41b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Functions that throw instances of the specified constructor function
satisfy the assertion.
---*/
function MyError() {}
assert.throws(MyError, function() {
throw new MyError();
});
reportCompare(0, 0);
|