ref: 624f975aae6b451e35406d8cdde808626052ce2c
parent: 0b71921de6e28e2e25381030f46d738128e40a9a
author: Tor Andersson <tor.andersson@artifex.com>
date: Mon Feb 22 15:19:46 EST 2016
Set the internal length attribute for C constructors.
--- a/jsvalue.c
+++ b/jsvalue.c
@@ -421,6 +421,7 @@
obj->u.c.name = name;
obj->u.c.function = cfun;
obj->u.c.constructor = ccon;
+ obj->u.c.length = length;
js_pushobject(J, obj); /* proto obj */
{
js_pushnumber(J, length);