mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	- Prefix file names to explicitly describe the "head" position - Remove statement name suffix as this information is reflected by each file's location within the file hierarchy
		
			
				
	
	
		
			13 lines
		
	
	
		
			338 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			338 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (C) 2014 the V8 project authors. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
/*---
 | 
						|
es6id: 13.6.4.12_S2
 | 
						|
description: >
 | 
						|
    ForIn/Of: Bound names of ForDeclaration are in TDZ (for-of)
 | 
						|
---*/
 | 
						|
 | 
						|
assert.throws(ReferenceError, function() {
 | 
						|
  let x = 1;
 | 
						|
  for (const x in { x }) {}
 | 
						|
});
 |