summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/empty/cptn-value.js
blob: d8acf25766781b622cc224b5ab88caf01bf61c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-empty-statement-runtime-semantics-evaluation
es6id: 13.4.1
description: Returns an empty completion
info: |
  1. Return NormalCompletion(empty).
---*/

assert.sameValue(eval(';'), undefined);
assert.sameValue(eval('2;;'), 2);
assert.sameValue(eval('3;;;'), 3);

reportCompare(0, 0);