fixed js_proxy_isArray stack overflow (github issue #178)
This commit is contained in:
parent
6de52d878a
commit
03cc5ecc88
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue