mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-25 15:18:12 +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…
Reference in New Issue
Block a user