40e4d192
by Francis De Brabandere at 2026-06-29T17:59:28+02:00
vbscript: Look up named items before builtin functions.
A named item shadows a builtin function of the same name in native VBScript,
so a host item named like a builtin, e.g. Trim, resolves to the item. Global
members of host objects do not shadow builtins.
Resolve visible named items before builtins in lookup_identifier, and cache a
resolved builtin as an entry in the global namespace tree, alongside variables,
functions and host properties. Subsequent lookups then find the builtin in the
tree and skip the separate named item and builtin lookups, so no per-script
shadow count is needed and a host with many named items pays the named item
walk only until each builtin is cached.