Open YaoHouyou opened 5 years ago
While it indeed looks like this got fixed at some point, it's broken again in the latest master
Looks like it never got fixed, eventhough there was a PR to fix it. Unfortunately, the changes in that PR are no longer sufficient, so we'll have to start from scratch
Rhino version: 1.7.11, 1.7.10, 1.7.9 testcase:
command:
java -jar rhino/rhino-1.7.11.jar -debug -version 200 testcase.js
result:Rhino not only allows redefine length of array, but also changes the array object. While others JS engines are not allowed to redefine property length, such as spiderMoneky, v8, javascriptCore, and chakra.
About why Rhino can redefine property of length while others can't, we have found that Rhino does not meet the ES5.1 standard. See more here.