blob: 56c9faaa9356c41a6c5546b363fb99605aac38ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 14.5
description: >
ClassExpression[Yield,GeneratorParameter] :
class BindingIdentifier[?Yield]opt ClassTail[?Yield,?GeneratorParameter]
ClassTail[Yield,GeneratorParameter] :
[~GeneratorParameter] ClassHeritage[?Yield]opt { ClassBody[?Yield]opt }
[+GeneratorParameter] ClassHeritageopt { ClassBodyopt }
---*/
class A {}
var B = class extends A {}
assert.sameValue(typeof B, "function");
reportCompare(0, 0);
|