mirror of
				https://github.com/bellard/quickjs.git
				synced 2025-05-29 01:49:18 +08:00 
			
		
		
		
	fixed js_proxy_isArray stack overflow (github issue #178)
This commit is contained in:
		
							parent
							
								
									6de52d878a
								
							
						
					
					
						commit
						03cc5ecc88
					
				@ -45243,6 +45243,10 @@ static int js_proxy_isArray(JSContext *ctx, JSValueConst obj)
 | 
				
			|||||||
    JSProxyData *s = JS_GetOpaque(obj, JS_CLASS_PROXY);
 | 
					    JSProxyData *s = JS_GetOpaque(obj, JS_CLASS_PROXY);
 | 
				
			||||||
    if (!s)
 | 
					    if (!s)
 | 
				
			||||||
        return FALSE;
 | 
					        return FALSE;
 | 
				
			||||||
 | 
					    if (js_check_stack_overflow(ctx->rt, 0)) {
 | 
				
			||||||
 | 
					        JS_ThrowStackOverflow(ctx);
 | 
				
			||||||
 | 
					        return -1;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    if (s->is_revoked) {
 | 
					    if (s->is_revoked) {
 | 
				
			||||||
        JS_ThrowTypeErrorRevokedProxy(ctx);
 | 
					        JS_ThrowTypeErrorRevokedProxy(ctx);
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user