mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	Generate tests
This commit is contained in:
		
							parent
							
								
									5f88a9293c
								
							
						
					
					
						commit
						eedbf4cf1d
					
				@ -38,7 +38,7 @@ async function * f() {
 | 
			
		||||
  return await import('./eval-gtbndng-indirect-update-dflt_FIXTURE.js');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
f().next().then(imported => {
 | 
			
		||||
f().next().then(({value: imported}) => {
 | 
			
		||||
 | 
			
		||||
  assert.sameValue(imported.default(), 1);
 | 
			
		||||
  assert.sameValue(imported.default, 2);
 | 
			
		||||
 | 
			
		||||
@ -39,7 +39,7 @@ async function * f() {
 | 
			
		||||
  return await import('./eval-gtbndng-indirect-update_FIXTURE.js');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
f().next().then(imported => {
 | 
			
		||||
f().next().then(({value: imported}) => {
 | 
			
		||||
 | 
			
		||||
  assert.sameValue(imported.x, 1);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -30,7 +30,7 @@ async function * f() {
 | 
			
		||||
  return await import('./module-code_FIXTURE.js');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
f().next().then(imported => {
 | 
			
		||||
f().next().then(({value: imported}) => {
 | 
			
		||||
 | 
			
		||||
  assert.sameValue(imported.default, 42);
 | 
			
		||||
  assert.sameValue(imported.x, 'Test262');
 | 
			
		||||
 | 
			
		||||
@ -26,7 +26,7 @@ async function * f() {
 | 
			
		||||
  return await import('./dynamic-import-module_FIXTURE.js')['then'](x => x);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
f().next().then(imported => {
 | 
			
		||||
f().next().then(({value: imported}) => {
 | 
			
		||||
 | 
			
		||||
  assert.sameValue(imported.x, 1);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -26,7 +26,7 @@ async function * f() {
 | 
			
		||||
  return await import('./dynamic-import-module_FIXTURE.js');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
f().next().then(imported => {
 | 
			
		||||
f().next().then(({value: imported}) => {
 | 
			
		||||
 | 
			
		||||
  assert.sameValue(imported.x, 1);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -48,7 +48,7 @@ async function * f() {
 | 
			
		||||
  return await import(obj);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
f().next().then(imported => {
 | 
			
		||||
f().next().then(({value: imported}) => {
 | 
			
		||||
 | 
			
		||||
  assert.sameValue(imported.default, 42);
 | 
			
		||||
  assert.sameValue(imported.x, 'Test262');
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user