Alexandre Julliard pushed to branch master at wine / wine
Commits: ccb39ffd by Gabriel Ivăncescu at 2025-08-21T22:28:36+02:00 jscript: Allow objects that expose "length" prop for Function.apply under certain conditions.
Behavior depends on mode. Javascript used inside mshtml allows non-JS objects that expose "length" to be used in apply(). For ES5 and above, even JS objects that expose "length" are allowed. Javascript not in HTML mode does not, however.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
- - - - - 9858eff8 by Gabriel Ivăncescu at 2025-08-21T22:28:36+02:00 jscript: Return proper error when passing wrong type to Function.apply.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
- - - - - 643f5e7a by Gabriel Ivăncescu at 2025-08-21T22:28:36+02:00 jscript: Fallback to Object's toString for Arrays when 'this' isn't an array in ES5 mode.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
- - - - - 833a4a24 by Gabriel Ivăncescu at 2025-08-21T22:28:36+02:00 jscript: Fix error value when passing non-string 'this' to String's toString.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
- - - - -
61 changed files:
- dlls/jscript/array.c - dlls/jscript/dispex.c - dlls/jscript/error.c - dlls/jscript/function.c - dlls/jscript/jscript.h - dlls/jscript/jscript.rc - dlls/jscript/object.c - dlls/jscript/resource.h - dlls/jscript/string.c - dlls/jscript/tests/api.js - dlls/mshtml/tests/documentmode.js - po/ar.po - po/ast.po - po/bg.po - po/ca.po - po/cs.po - po/da.po - po/de.po - po/el.po - po/en.po - po/en_US.po - po/eo.po - po/es.po - po/fa.po - po/fi.po - po/fr.po - po/he.po - po/hi.po - po/hr.po - po/hu.po - po/it.po - po/ja.po - po/ka.po - po/ko.po - po/lt.po - po/ml.po - po/nb_NO.po - po/nl.po - po/or.po - po/pa.po - po/pl.po - po/pt_BR.po - po/pt_PT.po - po/rm.po - po/ro.po - po/ru.po - po/si.po - po/sk.po - po/sl.po - po/sr_RS@cyrillic.po - po/sr_RS@latin.po - po/sv.po - po/ta.po - po/te.po - po/th.po - po/tr.po - po/uk.po - po/wa.po - po/wine.pot - po/zh_CN.po - po/zh_TW.po
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/d26458905d4bd4204b42518884b675...