зеркало из https://github.com/mozilla/pjs.git
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).
This commit is contained in:
Родитель
f1dd0bc8c5
Коммит
0bd1873977
|
@ -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)},
|
||||
|
|
Загрузка…
Ссылка в новой задаче