Files
AnyPS5/docs/dev/debt/changes/fix-nkwebkit-js-null-static-function.md
ToRaNekandClaude Fable 5.2 a988fa2653 fix(libSceNKWebKit): raise for a NULL static function only when it is read
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>
2026-11-22 06:16:15 +01:00

761 B

libSceNKWebKit

add Functional

  • Static function with a NULL callback (libSceNKWebKit) - not checked on a console. Reading it raises the ReferenceError of staticFunctionGetterImpl, unless a parent class lists the name with a callback; in, for...in and Object.keys do not raise. Object.getOwnPropertyDescriptor returns 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.