mirror of https://github.com/lukechilds/node.git
Browse Source
PR-URL: https://github.com/nodejs/node/pull/9697 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>v6
Michaël Zasso
8 years ago
committed by
Anna Henningsen
7 changed files with 41 additions and 3 deletions
@ -0,0 +1,14 @@ |
|||||
|
// 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.
|
||||
|
|
||||
|
// Flags: --stack-size=100
|
||||
|
|
||||
|
Debug = debug.Debug |
||||
|
|
||||
|
function overflow() { |
||||
|
return overflow(); |
||||
|
} |
||||
|
|
||||
|
Debug.setBreakOnException(); |
||||
|
assertThrows(overflow, RangeError); |
@ -0,0 +1,8 @@ |
|||||
|
// 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.
|
||||
|
|
||||
|
class A {} |
||||
|
class B {} |
||||
|
Object.assign(B, A); |
||||
|
assertEquals("class B {}", B.toString()); |
Loading…
Reference in new issue