Disabling null native functions

RESOLVED WORKSFORME

Status

()

Core
JavaScript Engine
--
enhancement
RESOLVED WORKSFORME
9 years ago
6 years ago

People

(Reporter: Igor Bukanov, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
Currently JS API that create native functions such as JS_NewFunction or JS_DefineFunction allows to pass null as a pointer to function's implementation. Such null native functions behaves exactly as a native with an empty body due to extra checks and code in js_Invoke.

We should stop supporting this broken usage and always require non-null natives for simpler code.

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.