mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 11:44:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			476 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			476 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| //@ skip if $memoryLimited or $buildType == "debug"
 | |
| //@ runDefault("--useLLInt=false", "--forceCodeBlockToJettisonDueToOldAge=true", "--maxPerThreadStackUsage=200000", "--exceptionStackTraceLimit=1", "--defaultErrorStackTraceLimit=1")
 | |
| 
 | |
| let foo = 'let a';
 | |
| for (let i = 0; i < 400000; i++)
 | |
|   foo += ',a' + i;
 | |
| 
 | |
| var exception;
 | |
| try {
 | |
|     new Function(foo)();
 | |
| } catch (e) {
 | |
|     exception = e;
 | |
| }
 | |
| 
 | |
| if (exception != "RangeError: Maximum call stack size exceeded.")
 | |
|     throw "FAILED";
 |