mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 11:44:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			512 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			512 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| //@ runDefault("--useConcurrentJIT=0", "--jitPolicyScale=0", "--collectContinuously=1")
 | |
| 
 | |
| let thing = []
 | |
| 
 | |
| function bar(x) {
 | |
|     thing.push(x);
 | |
| }
 | |
| 
 | |
| function foo() {
 | |
|     let hello = function () {
 | |
|         let tmp = 1;
 | |
|         return function (num) {
 | |
|             if (tmp) {
 | |
|                 if (num.length) {
 | |
|                 }
 | |
|             }
 | |
|         };
 | |
|     }();
 | |
| 
 | |
|     bar();
 | |
|     for (j = 0; j < 10000; j++) {
 | |
|         if (/\s/.test(' ')) {
 | |
|             hello(j);
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| for (let i=0; i<100; i++) {
 | |
|     foo();
 | |
| }
 |