jscript: Implement fdexNameCaseInsensitive flag handling.
commit7be0cffa067ba7c6386972b5bc941de2ad3a3f8e
authorGabriel Ivăncescu <gabrielopcode@gmail.com>
Tue, 16 Aug 2022 18:02:06 +0000 (16 21:02 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 17 Aug 2022 17:21:00 +0000 (17 19:21 +0200)
tree2d1b51ae34b694f1c7a9104438b7f7d0a0c454ce
parent015491ab32742ace5218d37b1149c58803858214
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@gmail.com>
dlls/jscript/dispex.c
dlls/jscript/tests/jscript.c
dlls/mshtml/tests/es5.js
dlls/mshtml/tests/script.c