From bea5c86c602f10a0f75b499089faace0e4a6a754 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Mon, 18 Sep 2000 23:35:22 +0000 Subject: [PATCH] Censor all Call objects, per ECMA-262 (r=rogerl, 53037). --- js/src/jsinterp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/src/jsinterp.c b/js/src/jsinterp.c index 73d85fe794cb..a32924d824d3 100644 --- a/js/src/jsinterp.c +++ b/js/src/jsinterp.c @@ -554,10 +554,7 @@ ComputeThis(JSContext *cx, JSObject *thisp, JSStackFrame *fp) { JSObject *parent; - if (thisp && - !(OBJ_GET_CLASS(cx, thisp) == &js_CallClass && - JS_GetPrivate(cx, thisp) != NULL)) - { + if (thisp && OBJ_GET_CLASS(cx, thisp) != &js_CallClass) { /* Some objects (e.g., With) delegate 'this' to another object. */ thisp = OBJ_THIS_OBJECT(cx, thisp); if (!thisp)