I believe there’s a test case for JSON.parse.length as well:)
/**
* …
* @path ch15/15.12/15.12.2/15.12.2-0-2.js
* @description JSON.parse must exist as a function taking 2 parameters
*/
function testcase() {
var f = JSON.parse;
if (typeof(f) === "function" && f.length === 2) {
return true;
}
}
runTestCase(testcase);
My best,
Dave
On Mon, Mar 12, 2012 at 8:33 AM, 程劭非
<[email protected]<mailto:[email protected]>> wrote:
> Hi all,
> Just noticed that there is no description about "name" and "length" property
> of JSON.parse and JSON.stringify in ES5.
> Are they implement-dependent?
>
> (I saw test262 require JSON.stringify.length to be 3, but no such case
> for JSON.parse. )
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss