Closed Bug 485905 Opened 15 years ago Closed 12 years ago

Disabling null native functions

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: igor, Unassigned)

Details

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.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.