mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			668 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			668 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
// Copyright (C) 2017 the V8 project authors. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
desc: >
 | 
						|
    Identifiers that appear as the DestructuringAssignmentTarget in an
 | 
						|
    AssignmentElement should take on the iterated value corresponding to their
 | 
						|
    position in the ArrayAssignmentPattern.
 | 
						|
template: default
 | 
						|
flags: [noStrict]
 | 
						|
---*/
 | 
						|
 | 
						|
//- setup
 | 
						|
let argument, eval;
 | 
						|
//- elems
 | 
						|
[arguments = 4, eval = 5]
 | 
						|
//- vals
 | 
						|
[]
 | 
						|
//- body
 | 
						|
assert.sameValue(arguments, 4);
 | 
						|
assert.sameValue(eval, 5);
 | 
						|
 | 
						|
//- teardown
 | 
						|
promise
 | 
						|
  .then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)
 | 
						|
  .then($DONE, $DONE);
 |