Censor all Call objects, per ECMA-262 (r=rogerl, 53037).
git-svn-id: svn://10.0.0.236/trunk@79480 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fb15eb7a47
commit
8619f05fe8
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user