diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2022-10-26 20:42:29 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2022-10-26 20:42:29 +0200 |
commit | bf4ac9420739b4ac3bc963bd2c7b69de36a8bb11 (patch) | |
tree | 4bb1c433b9ae7a81f33b818867827c2b9bf2c049 | |
parent | 69e2767d0a8e58054542cc30a67de7ece0659965 (diff) |
Set length of output array Array.prototype.map.
-rw-r--r-- | jsarray.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -583,6 +583,7 @@ static void Ap_map(js_State *J) js_pop(J, 1); } } + js_setlength(J, -1, len); } static void Ap_filter(js_State *J) |