Module: wine
Branch: master
Commit: 7be0cffa067ba7c6386972b5bc941de2ad3a3f8e
URL: https://gitlab.winehq.org/wine/wine/-/commit/7be0cffa067ba7c6386972b5bc941d…
Author: Gabriel Ivăncescu <gabrielopcode(a)gmail.com>
Date: Tue Aug 16 21:02:06 2022 +0300
jscript: Implement fdexNameCaseInsensitive flag handling.
Despite common sense, native doesn't seem to look for exact match first;
it simply case-insensitively compares the props and returns as soon as it
finds one. This is also reliant on implementation details in case the object
has multiple props with same case-insensitive names, e.g. an object having
`Foo` prop, with `foo` prop on its prototype, can still find `Foo` even if
you look up `foo` instead (which matches exactly on the prototype). Which
is not always reliable, sometimes it finds the prototype first.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)gmail.com>
---
dlls/jscript/dispex.c | 94 ++++++++++++++++++----------------
dlls/jscript/tests/jscript.c | 119 +++++++++++++++++++++++++++++++++++++++++++
dlls/mshtml/tests/es5.js | 12 +++++
dlls/mshtml/tests/script.c | 103 +++++++++++++++++++++++++++++++++++++
4 files changed, 285 insertions(+), 43 deletions(-)