Backport Add a setter for js.Array.length.

Backport: Changed body of method from `native` to `???`
w.r.t. original commit.

(cherry picked from commit 2d4058a14ce01a74fde6dd4f5fcf4ee18e3310ab)