blob: 100aa67f7b53d5f8dda7febeb8513b6904eb35ec [file] [log] [blame]
// 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);