--- !ditz.rubyforge.org,2008-03-06/issue title: add a 'length' property and maybe other function properties to user Duktape/C functions too? desc: "" type: :task component: duk release: v0.10 reporter: sva status: :closed disposition: :fixed creation_time: 2013-11-04 21:22:21.310962 Z references: [] id: ff420f0d79620030bf4ccc597577ac489eca8b50 log_events: - - 2013-11-04 21:22:21.471209 Z - sva - created - "" - - 2014-01-16 21:33:06.947371 Z - sva - assigned to release v0.10 from v0.9 - "" - - 2014-02-04 19:58:51.950472 Z - sva - commented - |- Perhaps add a virtual property 'length' based on 'nargs' value. If a concrete property is written, it could override the virtual property. This is probably needed by built-ins whose 'length' and 'nargs' don't always match. This would have the side effect that 'length' couldn't be deleted from Duktape/C functions. - - 2014-02-18 12:06:38.357508 Z - sva - commented - Add an intermediate prototype object so that Function.prototype is not polluted? - - 2014-03-02 22:23:19.268925 Z - sva - changed status from unstarted to in_progress - "" - - 2014-03-28 10:26:57.751300 Z - Sami Vaarala - closed with disposition fixed - ""