summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/class/cptn-decl.js
blob: f3beb693c1dc65f7f600a9b3bf6e588bf12c0147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2017 Apple Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-class-definitions-runtime-semantics-evaluation
description: Class declaration completion value is empty.
info: |
    ClassDeclaration : class BindingIdentifier ClassTail

    1. Perform ? BindingClassDeclarationEvaluation of this ClassDeclaration.
    2. Return NormalCompletion(empty).
---*/

assert.sameValue(eval('class C {}'), undefined);
assert.sameValue(eval('1; class C {}'), 1);

reportCompare(0, 0);