mirror of https://github.com/tc39/test262.git
15 lines
528 B
JavaScript
15 lines
528 B
JavaScript
// 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);
|