mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			477 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			477 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (c) 2020 Rick Waldron.  All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
esid: sec-strict-mode-of-ecmascript
 | 
						|
description: >
 | 
						|
    eval allowed as formal parameter name of a non-strict function expression
 | 
						|
flags: [noStrict]
 | 
						|
---*/
 | 
						|
 | 
						|
let exprCallCount = 0;
 | 
						|
let evalValue = {};
 | 
						|
 | 
						|
let foo = function(eval) {
 | 
						|
  assert.sameValue(eval, evalValue);
 | 
						|
  exprCallCount += 1;
 | 
						|
};
 | 
						|
 | 
						|
foo(evalValue);
 | 
						|
 | 
						|
assert.sameValue(exprCallCount, 1);
 |