Debian Codegraph @

js/src/tests/test262/language/statements/empty/cptn-value.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-empty-statement-runtime-semantics-evaluation
5 es6id: 13.4.1
6 description: Returns an empty completion
7 info: |
8 1. Return NormalCompletion(empty).
9 ---*/
10
11 assert.sameValue(eval(';'), undefined);
12 assert.sameValue(eval('2;;'), 2);
13 assert.sameValue(eval('3;;;'), 3);
14
15 reportCompare(0, 0);