mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 00:50:52 +00:00
A class may list a static function with a NULL callAsFunction. JavaScriptCore reports the property as present and raises a ReferenceError when its value is read. The port raised as soon as a descriptor was asked for, which QuickJS does while it enumerates, so for...in and Object.keys over such an object threw. The property is now described with a getter that raises the error. As in staticFunctionGetterImpl, a parent class that lists the same name with a callback supplies the function. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
761 B
761 B
libSceNKWebKit
add Functional
- Static function with a NULL callback (libSceNKWebKit) - not checked on a console. Reading it raises the
ReferenceErrorofstaticFunctionGetterImpl, unless a parent class lists the name with a callback;in,for...inandObject.keysdo not raise.Object.getOwnPropertyDescriptorreturns an accessor descriptor where JavaScriptCore raises the error: QuickJS asks the same hook for a descriptor while it enumerates. Closes when: the hook can tell an enumeration from a read of the descriptor.