From 0bd1873977e42791df9bbfe412074e198ae5fe9c Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Sat, 26 Aug 2000 02:05:41 +0000 Subject: [PATCH] Lazily define escape and unescape (via js_InitStringClass) only #ifndef MOZILLA_CLIENT, because the DOM must predefine backward-compatible versions of these functions that 'stick' (42221, r=mccabe). --- js/src/jsapi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/src/jsapi.c b/js/src/jsapi.c index 8141773c99b..b8fb38af1cc 100644 --- a/js/src/jsapi.c +++ b/js/src/jsapi.c @@ -1117,8 +1117,11 @@ static JSStdName standard_class_names[] = { {js_InitNumberClass, TAG_CHAR_STRING(js_parseInt_str)}, /* String global functions. */ +#ifndef MOZILLA_CLIENT + /* These two are predefined in a backward-compatible way by the DOM. */ {js_InitStringClass, TAG_CHAR_STRING(js_escape_str)}, {js_InitStringClass, TAG_CHAR_STRING(js_unescape_str)}, +#endif {js_InitStringClass, TAG_CHAR_STRING(js_decodeURI_str)}, {js_InitStringClass, TAG_CHAR_STRING(js_encodeURI_str)}, {js_InitStringClass, TAG_CHAR_STRING(js_decodeURIComponent_str)},