mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[spidermonkey] Bump mozjs dependency to mozjs-115
This commit is contained in:
parent
378842a349
commit
f89705df74
@ -787,8 +787,8 @@ SPIDERMONKEY_FOUND=
|
||||
|
||||
if test "x$CONFIG_SPIDERMONKEY" = xyes ||
|
||||
test "x$CONFIG_SCRIPTING_SPIDERMONKEY" = xyes; then
|
||||
package=mozjs-102
|
||||
AC_MSG_CHECKING([for SpiderMonkey (mozjs-102) in pkg-config $package])
|
||||
package=mozjs-115
|
||||
AC_MSG_CHECKING([for SpiderMonkey (mozjs-115) in pkg-config $package])
|
||||
if $PKG_CONFIG $pkg_config_static --cflags --libs $package > /dev/null 2>&AS_MESSAGE_LOG_FD; then
|
||||
DB_LOCALSTORAGE_LIBS="$($PKG_CONFIG $pkg_config_static --libs sqlite3)"
|
||||
CURL_LIBS="$($PKG_CONFIG $pkg_config_static --libs libcurl)"
|
||||
|
@ -455,7 +455,7 @@ endif
|
||||
|
||||
mozjsdeps = []
|
||||
if conf_data.get('CONFIG_ECMASCRIPT_SMJS') or conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY')
|
||||
mozjsdeps = dependency('mozjs-102', static: st)
|
||||
mozjsdeps = dependency('mozjs-115', static: st)
|
||||
deps += mozjsdeps
|
||||
endif
|
||||
|
||||
|
@ -96,11 +96,12 @@ spidermonkey_InitClass(JSContext *cx, JSObject *obj,
|
||||
JSPropertySpec *ps,
|
||||
const spidermonkeyFunctionSpec *fs,
|
||||
JSPropertySpec *static_ps,
|
||||
const spidermonkeyFunctionSpec *static_fs)
|
||||
const spidermonkeyFunctionSpec *static_fs,
|
||||
const char *name)
|
||||
{
|
||||
JS::RootedObject hobj(cx, obj);
|
||||
JS::RootedObject r_parent_proto(cx, parent_proto);
|
||||
JSObject *proto = JS_InitClass(cx, hobj, r_parent_proto, clasp,
|
||||
JSObject *proto = JS_InitClass(cx, hobj, clasp, r_parent_proto, name,
|
||||
constructor, nargs,
|
||||
ps, NULL, static_ps, NULL);
|
||||
|
||||
|
@ -35,7 +35,8 @@ JSObject *spidermonkey_InitClass(JSContext *cx, JSObject *obj,
|
||||
JSPropertySpec *ps,
|
||||
const spidermonkeyFunctionSpec *fs,
|
||||
JSPropertySpec *static_ps,
|
||||
const spidermonkeyFunctionSpec *static_fs);
|
||||
const spidermonkeyFunctionSpec *static_fs,
|
||||
const char *name);
|
||||
|
||||
bool spidermonkey_check_if_function_name(const spidermonkeyFunctionSpec funcs[], const char *string);
|
||||
|
||||
|
@ -195,7 +195,7 @@ spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter)
|
||||
&document_class, NULL, 0,
|
||||
document_props,
|
||||
document_funcs,
|
||||
NULL, NULL);
|
||||
NULL, NULL, "document");
|
||||
if (!document_obj) {
|
||||
goto release_and_fail;
|
||||
}
|
||||
@ -217,7 +217,7 @@ spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter)
|
||||
&history_class, NULL, 0,
|
||||
(JSPropertySpec *) NULL,
|
||||
history_funcs,
|
||||
NULL, NULL);
|
||||
NULL, NULL, "history");
|
||||
if (!history_obj) {
|
||||
goto release_and_fail;
|
||||
}
|
||||
@ -225,14 +225,14 @@ spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter)
|
||||
&screen_class, NULL, 0,
|
||||
screen_props,
|
||||
NULL,
|
||||
NULL, NULL);
|
||||
NULL, NULL, "screen");
|
||||
|
||||
if (!screen_obj) {
|
||||
goto release_and_fail;
|
||||
}
|
||||
|
||||
menubar_obj = JS_InitClass(ctx, global, nullptr,
|
||||
&menubar_class, NULL, 0,
|
||||
menubar_obj = JS_InitClass(ctx, global, &menubar_class, nullptr,
|
||||
"menubar", NULL, 0,
|
||||
unibar_props, NULL,
|
||||
NULL, NULL);
|
||||
if (!menubar_obj) {
|
||||
@ -240,8 +240,8 @@ spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter)
|
||||
}
|
||||
JS::SetReservedSlot(menubar_obj, 0, JS::PrivateValue((char *)"t")); /* to @menubar_class */
|
||||
|
||||
statusbar_obj = JS_InitClass(ctx, global, nullptr,
|
||||
&statusbar_class, NULL, 0,
|
||||
statusbar_obj = JS_InitClass(ctx, global, &statusbar_class, nullptr,
|
||||
"statusbar", NULL, 0,
|
||||
unibar_props, NULL,
|
||||
NULL, NULL);
|
||||
if (!statusbar_obj) {
|
||||
@ -249,8 +249,8 @@ spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter)
|
||||
}
|
||||
JS::SetReservedSlot(statusbar_obj, 0, JS::PrivateValue((char *)"s")); /* to @statusbar_class */
|
||||
|
||||
navigator_obj = JS_InitClass(ctx, global, nullptr,
|
||||
&navigator_class, NULL, 0,
|
||||
navigator_obj = JS_InitClass(ctx, global, &navigator_class, nullptr,
|
||||
"navigator", NULL, 0,
|
||||
navigator_props, NULL,
|
||||
NULL, NULL);
|
||||
if (!navigator_obj) {
|
||||
@ -261,7 +261,7 @@ spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter)
|
||||
&console_class, NULL, 0,
|
||||
nullptr,
|
||||
console_funcs,
|
||||
NULL, NULL);
|
||||
NULL, NULL, "console");
|
||||
if (!console_obj) {
|
||||
goto release_and_fail;
|
||||
}
|
||||
@ -270,7 +270,7 @@ spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter)
|
||||
&localstorage_class, NULL, 0,
|
||||
nullptr,
|
||||
localstorage_funcs,
|
||||
NULL, NULL);
|
||||
NULL, NULL, "localstorage");
|
||||
if (!localstorage_obj) {
|
||||
goto release_and_fail;
|
||||
}
|
||||
@ -279,7 +279,7 @@ spidermonkey_get_interpreter(struct ecmascript_interpreter *interpreter)
|
||||
&xhr_class, xhr_constructor, 0,
|
||||
xhr_props,
|
||||
xhr_funcs,
|
||||
xhr_static_props, NULL);
|
||||
xhr_static_props, NULL, "xhr");
|
||||
|
||||
if (!xhr_obj) {
|
||||
goto release_and_fail;
|
||||
|
@ -143,7 +143,7 @@ smjs_get_elinks_object(void)
|
||||
return spidermonkey_InitClass(smjs_ctx, obj, NULL,
|
||||
(JSClass *) &elinks_class, NULL, 0,
|
||||
(JSPropertySpec *) elinks_props,
|
||||
elinks_funcs, NULL, NULL);
|
||||
elinks_funcs, NULL, NULL, "elinks");
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1134,5 +1134,5 @@ smjs_init_session_interface(void)
|
||||
spidermonkey_InitClass(smjs_ctx, obj, NULL,
|
||||
(JSClass *) &session_class, session_construct,
|
||||
0, (JSPropertySpec *) session_props,
|
||||
session_funcs, NULL, NULL);
|
||||
session_funcs, NULL, NULL, "session");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user