mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 11:44:31 +01:00 
			
		
		
		
	Remove leading space characters so directly loading the frontmatter text with `yaml.safe_load` doesn't throw an exception.
		
			
				
	
	
		
			23 lines
		
	
	
		
			470 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			470 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (C) 2013 the V8 project authors. All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| description: >
 | |
|     The right-hand side of a `yield *` expression may appear on a new line.
 | |
| features: [generators]
 | |
| es6id: 14.4
 | |
| ---*/
 | |
| 
 | |
| var result;
 | |
| var obj = {
 | |
|   *g() {
 | |
|     yield *
 | |
|     g2()
 | |
|   }
 | |
| };
 | |
| var g2 = function*() {};
 | |
| 
 | |
| result = obj.g().next();
 | |
| assert.sameValue(result.value, undefined);
 | |
| assert.sameValue(result.done, true);
 |