mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 19:53:50 +01:00 
			
		
		
		
	Atomics: use .then($DONE, $DONE) wherever possible
This commit is contained in:
		
							parent
							
								
									362d7af20f
								
							
						
					
					
						commit
						ae7b606cc2
					
				| @ -57,4 +57,4 @@ Promise.all([ | ||||
|   assert.sameValue(outcomes[0], 'timed-out'); | ||||
|   assert.sameValue(outcomes[1], 'timed-out'); | ||||
|   assert.sameValue(outcomes[2], 'timed-out'); | ||||
| }, $DONE).then($DONE, $DONE); | ||||
| }).then($DONE, $DONE); | ||||
|  | ||||
| @ -67,6 +67,6 @@ Promise.all([ | ||||
|     'C not-equal,not-equal,not-equal,not-equal,not-equal', | ||||
|     'All C values are not equal' | ||||
|   ); | ||||
| }, $DONE).then($DONE, $DONE); | ||||
| }).then($DONE, $DONE); | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -25,4 +25,4 @@ Promise.all([Atomics.waitAsync(i64a, 0, 0n, -1).value]).then(([outcome]) => { | ||||
|     'timed-out', | ||||
|     'Atomics.waitAsync(i64a, 0, 0n, -1).value resolves to "timed-out"' | ||||
|   ); | ||||
| }, $DONE).then($DONE, $DONE); | ||||
| }).then($DONE, $DONE); | ||||
|  | ||||
| @ -59,4 +59,4 @@ Promise.all([ | ||||
|   assert.sameValue(outcomes[0], 'timed-out'); | ||||
|   assert.sameValue(outcomes[1], 'timed-out'); | ||||
|   assert.sameValue(outcomes[2], 'timed-out'); | ||||
| }, $DONE).then($DONE, $DONE); | ||||
| }).then($DONE, $DONE); | ||||
|  | ||||
| @ -68,4 +68,4 @@ Promise.all([ | ||||
|   assert.sameValue(outcomes[0], 'timed-out'); | ||||
|   assert.sameValue(outcomes[1], 'timed-out'); | ||||
|   assert.sameValue(outcomes[2], 'timed-out'); | ||||
| }, $DONE).then($DONE, $DONE); | ||||
| }).then($DONE, $DONE); | ||||
|  | ||||
| @ -41,4 +41,4 @@ Promise.all([ | ||||
|   assert.sameValue(outcomes[0], 'timed-out'); | ||||
|   assert.sameValue(outcomes[1], 'timed-out'); | ||||
|   assert.sameValue(outcomes[2], 'timed-out'); | ||||
| }, $DONE).then($DONE, $DONE); | ||||
| }).then($DONE, $DONE); | ||||
|  | ||||
| @ -57,4 +57,4 @@ Promise.all([ | ||||
|   assert.sameValue(outcomes[1], 'ok'); | ||||
|   assert.sameValue(outcomes[2], 'ok'); | ||||
|   assert.sameValue(outcomes[3], 'ok'); | ||||
| }, $DONE).then($DONE, $DONE); | ||||
| }).then($DONE, $DONE); | ||||
|  | ||||
| @ -40,4 +40,4 @@ const toPrimitive = { | ||||
| Promise.all([Atomics.store(i64a, 0, 42n), Atomics.waitAsync(i64a, 0, 0n).value]).then(outcomes => { | ||||
|   assert.sameValue(outcomes[0], 42n); | ||||
|   assert.sameValue(outcomes[1], 'not-equal'); | ||||
| }, $DONE).then($DONE, $DONE); | ||||
| }).then($DONE, $DONE); | ||||
|  | ||||
| @ -60,4 +60,4 @@ Promise.all([ | ||||
|     assert.sameValue(outcomes[0], 'timed-out'); | ||||
|     assert.sameValue(outcomes[1], 'timed-out'); | ||||
|     assert.sameValue(outcomes[2], 'timed-out'); | ||||
|   }, $DONE).then($DONE, $DONE); | ||||
|   }).then($DONE, $DONE); | ||||
|  | ||||
| @ -66,5 +66,5 @@ Promise.all([ | ||||
|     'C not-equal,not-equal,not-equal,not-equal,not-equal', | ||||
|     'All C values are not equal' | ||||
|   ); | ||||
| }, $DONE).then($DONE, $DONE); | ||||
| }).then($DONE, $DONE); | ||||
| 
 | ||||
|  | ||||
| @ -30,4 +30,4 @@ Promise.all([ | ||||
|       'timed-out', | ||||
|       'Atomics.waitAsync(i32a, 0, 0, -1).value resolves to "timed-out"' | ||||
|     ); | ||||
|   }, $DONE).then($DONE, $DONE); | ||||
|   }).then($DONE, $DONE); | ||||
|  | ||||
| @ -60,4 +60,4 @@ Promise.all([ | ||||
|     assert.sameValue(outcomes[0], "timed-out"); | ||||
|     assert.sameValue(outcomes[1], "timed-out"); | ||||
|     assert.sameValue(outcomes[2], "timed-out"); | ||||
|   }, $DONE).then($DONE, $DONE); | ||||
|   }).then($DONE, $DONE); | ||||
|  | ||||
| @ -69,4 +69,4 @@ Promise.all([ | ||||
|     assert.sameValue(outcomes[0], "timed-out"); | ||||
|     assert.sameValue(outcomes[1], "timed-out"); | ||||
|     assert.sameValue(outcomes[2], "timed-out"); | ||||
|   }, $DONE).then($DONE, $DONE); | ||||
|   }).then($DONE, $DONE); | ||||
|  | ||||
| @ -44,4 +44,4 @@ Promise.all([ | ||||
|     assert.sameValue(outcomes[0], 'timed-out'); | ||||
|     assert.sameValue(outcomes[1], 'timed-out'); | ||||
|     assert.sameValue(outcomes[2], 'timed-out'); | ||||
|   }, $DONE).then($DONE, $DONE); | ||||
|   }).then($DONE, $DONE); | ||||
|  | ||||
| @ -60,4 +60,4 @@ Promise.all([ | ||||
|     assert.sameValue(outcomes[1], 'ok'); | ||||
|     assert.sameValue(outcomes[2], 'ok'); | ||||
|     assert.sameValue(outcomes[3], 'ok'); | ||||
|   }, $DONE).then($DONE, $DONE); | ||||
|   }).then($DONE, $DONE); | ||||
|  | ||||
| @ -46,4 +46,4 @@ Promise.all([ | ||||
|   ]).then(outcomes => { | ||||
|     assert.sameValue(outcomes[0], 42); | ||||
|     assert.sameValue(outcomes[1], 'not-equal'); | ||||
|   }, $DONE).then($DONE, $DONE); | ||||
|   }).then($DONE, $DONE); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user