mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 03:34:08 +01:00 
			
		
		
		
	The project contains tests for the completion value of most (but not all) statements. Introduce tests to complete coverage of this detail.
		
			
				
	
	
		
			14 lines
		
	
	
		
			415 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			415 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // 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);
 |