From ed9671e8d7597587e7225550dc0a78d6b5cf7604 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sat, 14 Aug 2004 11:23:38 +0000 Subject: [PATCH] Fixed JS complaints about missing 'prototype' This was SVN commit r988. --- source/gui/scripting/JSInterface_IGUIObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gui/scripting/JSInterface_IGUIObject.cpp b/source/gui/scripting/JSInterface_IGUIObject.cpp index 2f77ec9aec..e58932ff77 100755 --- a/source/gui/scripting/JSInterface_IGUIObject.cpp +++ b/source/gui/scripting/JSInterface_IGUIObject.cpp @@ -1,4 +1,4 @@ -// $Id: JSInterface_IGUIObject.cpp,v 1.9 2004/07/31 11:29:28 philip Exp $ +// $Id: JSInterface_IGUIObject.cpp,v 1.10 2004/08/14 11:23:38 philip Exp $ #include "precompiled.h" @@ -36,6 +36,7 @@ JSBool JSI_IGUIObject::getProperty(JSContext* cx, JSObject* obj, jsval id, jsval // just for efficiency, and to allow correct reporting of attempts to access // nonexistent properties.) if (propName == (CStr)"constructor" || + propName == (CStr)"prototype" || propName == (CStr)"toString" || propName == (CStr)"getByName" )