mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 19:53:50 +01:00 
			
		
		
		
	This makes v8's _monkeyYaml happy --- without it, the info block never ends, and we fail to parse the `features` key. An explicit indentation marker isn't used because monkeyYaml doesn't supported it, and adding it might slightly slow things down. Using PyYAML instead was considered, but after trying it, I don't think it looks viable. [simple test cases](https://gist.github.com/caitp/4a59a67f671907c11051a1b7bd5fdaae)
		
			
				
	
	
		
			20 lines
		
	
	
		
			478 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			478 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (C) 2018 Kevin Gibbons. All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| esid: sec-object.fromentries
 | |
| description: Throws when called without an argument.
 | |
| info: |
 | |
|   Object.fromEntries ( iterable )
 | |
| 
 | |
|   1. Perform ? RequireObjectCoercible(iterable).
 | |
|   ...
 | |
| 
 | |
| features: [Object.fromEntries]
 | |
| ---*/
 | |
| 
 | |
| assert.sameValue(typeof Object.fromEntries, 'function');
 | |
| assert.throws(TypeError, function() {
 | |
|   Object.fromEntries();
 | |
| });
 |