mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	Fix remaining strict mode errors in built-ins
Add missing noStrict flags and variable declarations. Part of issue #35.
This commit is contained in:
		
							parent
							
								
									a66c978c5f
								
							
						
					
					
						commit
						d99503e5ca
					
				@ -5,6 +5,7 @@
 | 
			
		||||
info: The length property of Array has the attribute ReadOnly
 | 
			
		||||
es5id: 15.4.3_A2.3
 | 
			
		||||
description: Checking if varying the length property fails
 | 
			
		||||
flags: [noStrict]
 | 
			
		||||
---*/
 | 
			
		||||
 | 
			
		||||
//CHECK#1
 | 
			
		||||
 | 
			
		||||
@ -16,7 +16,7 @@ iter.next();
 | 
			
		||||
 | 
			
		||||
assert.throws(E, function() { iter.throw(new E()); });
 | 
			
		||||
 | 
			
		||||
result = iter.next();
 | 
			
		||||
var result = iter.next();
 | 
			
		||||
 | 
			
		||||
assert.sameValue(result.value, undefined, 'Result `value`');
 | 
			
		||||
assert.sameValue(result.done, true, 'Result `done` flag');
 | 
			
		||||
 | 
			
		||||
@ -18,7 +18,7 @@ var iter;
 | 
			
		||||
iter = G();
 | 
			
		||||
assert.throws(E, function() { iter.throw(new E()); });
 | 
			
		||||
 | 
			
		||||
result = iter.next();
 | 
			
		||||
var result = iter.next();
 | 
			
		||||
 | 
			
		||||
assert.sameValue(result.value, undefined, 'Result `value`');
 | 
			
		||||
assert.sameValue(result.done, true, 'Result `done` flag');
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user