From fa09fefb4938b665be5ac2df55464c6749dfca46 Mon Sep 17 00:00:00 2001 From: Peter Weilbacher Date: Fri, 30 Jan 2009 10:19:43 +0100 Subject: [PATCH] Bug 474366: OS/2 build break in xpcshell.cpp due to bug 470914, p=wuno@lsvw, r=ted.mielczarek --- js/src/xpconnect/shell/xpcshell.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/src/xpconnect/shell/xpcshell.cpp b/js/src/xpconnect/shell/xpcshell.cpp index 9f0aed62c300..7a88d5b12f3b 100644 --- a/js/src/xpconnect/shell/xpcshell.cpp +++ b/js/src/xpconnect/shell/xpcshell.cpp @@ -123,10 +123,10 @@ nsAutoString *gWorkingDirectory = nsnull; static JSBool GetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) { -#if !defined(XP_WIN) && !defined(XP_UNIX) +#if !defined(XP_WIN) && !defined(XP_UNIX) || defined(WINCE) //XXX: your platform should really implement this - return JS_FALSE -#endif + return JS_FALSE; +#else JSStackFrame *fp = JS_GetScriptedCaller(cx, NULL); JSScript *script = JS_GetFrameScript(cx, fp); const char *filename = JS_GetScriptFilename(cx, script); @@ -196,6 +196,7 @@ GetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) } return JS_TRUE; +#endif } static JSBool