mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove lambda-replace built-in, it's not safe to record into a nested js_Interpret.
This commit is contained in:
parent
2c4e22add3
commit
324b9c7f4e
@ -58,7 +58,6 @@ BUILTIN2(String_fromCharCode, LO, LO, P, JSString*, JSContext*, jsint, 1,
|
||||
BUILTIN2(String_p_charCodeAt, LO, LO, LO, jsint, JSString*, jsint, 1, 1)
|
||||
BUILTIN3(String_p_concat_1int, LO, LO, LO, P, JSString*, JSContest*, JSString*, jsint, 1, 1)
|
||||
BUILTIN4(String_p_match, LO, LO, LO, LO, P, JSObject*, JSContext*, JSString*, jsbytecode*, JSObject*, 1, 1)
|
||||
BUILTIN4(String_p_replace_fun, LO, LO, LO, LO, P, JSString*, JSContext*, JSString*, JSObject*, JSObject*, 1, 1)
|
||||
BUILTIN4(String_p_replace_str, LO, LO, LO, LO, P, JSString*, JSContext*, JSString*, JSObject*, JSString*, 1, 1)
|
||||
BUILTIN5(String_p_replace_str3, LO, LO, LO, LO, LO, P, JSString*, JSContext*, JSString*, JSString*, JSString*, JSString*, 1, 1)
|
||||
BUILTIN1(Math_random, LO, F, jsdouble, JSRuntime*, 1, 1)
|
||||
|
@ -277,18 +277,6 @@ js_String_p_match(JSContext* cx, JSString* str, jsbytecode *pc, JSObject* regexp
|
||||
return JSVAL_TO_OBJECT(vp[0]);
|
||||
}
|
||||
|
||||
JSString* FASTCALL
|
||||
js_String_p_replace_fun(JSContext* cx, JSString* str, JSObject* regexp, JSObject* lambda)
|
||||
{
|
||||
jsval vp[4] = {
|
||||
JSVAL_NULL, STRING_TO_JSVAL(str), OBJECT_TO_JSVAL(regexp), OBJECT_TO_JSVAL(lambda)
|
||||
};
|
||||
if (!js_StringReplaceHelper(cx, 2, lambda, NULL, vp))
|
||||
return NULL;
|
||||
JS_ASSERT(JSVAL_IS_STRING(vp[0]));
|
||||
return JSVAL_TO_STRING(vp[0]);
|
||||
}
|
||||
|
||||
JSString* FASTCALL
|
||||
js_String_p_replace_str(JSContext* cx, JSString* str, JSObject* regexp, JSString* repstr)
|
||||
{
|
||||
|
@ -4075,7 +4075,6 @@ TraceRecorder::record_JSOP_CALL()
|
||||
{ js_str_match, F_String_p_match, "PTC", "r", FAIL_VOID, NULL },
|
||||
{ js_str_replace, F_String_p_replace_str3,"TC","sss", FAIL_NULL, NULL },
|
||||
{ js_str_replace, F_String_p_replace_str, "TC", "sr", FAIL_NULL, NULL },
|
||||
{ js_str_replace, F_String_p_replace_fun, "TC", "fr", FAIL_NULL, NULL },
|
||||
{ js_math_random, F_Math_random, "R", "", INFALLIBLE, NULL },
|
||||
{ js_str_concat, F_String_p_concat_1int, "TC", "i", FAIL_NULL, NULL },
|
||||
{ js_array_join, F_Array_p_join, "TC", "s", FAIL_NULL, NULL },
|
||||
|
Loading…
Reference in New Issue
Block a user