mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-30 03:03:51 +01:00 
			
		
		
		
	* [javascriptcore-test262-automation] changes from git@github.com:WebKit/webkit.git at sha 949e26452cfa153a7f4afe593da97e2fe9e1b706 on Tue Jul 03 2018 14:35:15 GMT-0400 (Eastern Daylight Time)
		
			
				
	
	
		
			34 lines
		
	
	
		
			574 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			574 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| //@ runFTLNoCJIT("--maxPerThreadStackUsage=400000")
 | |
| 
 | |
| function runNearStackLimit(f) {
 | |
|     function t() {
 | |
|         try {
 | |
|             return t();
 | |
|         } catch (e) {
 | |
|             return f();
 | |
|         }
 | |
|     }
 | |
|     return t()
 | |
| }
 | |
| 
 | |
| function foo(a, b) {
 | |
|   return [{
 | |
|     name: b + "" + a
 | |
|   }];
 | |
| }
 | |
| 
 | |
| var exception;
 | |
| try {
 | |
|     __v_25012 = [].concat(
 | |
|         foo(1, []),
 | |
|         runNearStackLimit(() => {
 | |
|             return foo("bla", Symbol.search);
 | |
|         })
 | |
|     );
 | |
| } catch (e) {
 | |
|     exception = e;
 | |
| }
 | |
| 
 | |
| if (exception != "TypeError: Cannot convert a symbol to a string")
 | |
|     throw "FAILED";
 |