mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			941 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			941 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (C) 2021 the V8 project authors. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
/*---
 | 
						|
description: >
 | 
						|
    WithClause in ImportDeclaration may contain a trailing comma
 | 
						|
esid: sec-modules
 | 
						|
info: |
 | 
						|
  ImportDeclaration:
 | 
						|
    import ModuleSpecifier[no LineTerminator here] WithClause;
 | 
						|
 | 
						|
  WithClause:
 | 
						|
    AttributesKeyword {}
 | 
						|
    AttributesKeyword {WithEntries ,opt}
 | 
						|
 | 
						|
  WithEntries:
 | 
						|
    AttributeKey : StringLiteral
 | 
						|
    AttributeKey : StringLiteral , WithEntries
 | 
						|
 | 
						|
  AttributeKey:
 | 
						|
    IdentifierName
 | 
						|
    StringLiteral
 | 
						|
negative:
 | 
						|
  phase: resolution
 | 
						|
  type: SyntaxError
 | 
						|
features: [import-attributes, globalThis]
 | 
						|
flags: [module]
 | 
						|
---*/
 | 
						|
 | 
						|
$DONOTEVALUATE();
 | 
						|
 | 
						|
import "./ensure-linking-error_FIXTURE.js";
 | 
						|
 | 
						|
import x from './import-attribute-1_FIXTURE.js' with {test262:'',};
 | 
						|
import './import-attribute-2_FIXTURE.js' with {test262:'',};
 | 
						|
export * from './import-attribute-3_FIXTURE.js' with {test262:'',};
 |