2017-05-04 17:22:28 +02:00
|
|
|
// 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.
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2017-05-04 17:22:28 +02:00
|
|
|
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);
|