RE: The "name" and "length" property of JSON.parse and JSON.stringify

2012-03-14 Thread Dave Fugate
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)

Re: The "name" and "length" property of JSON.parse and JSON.stringify

2012-03-12 Thread 程劭非
Thank you. It's my fault that I didn't read it carefully. 2012/3/12 Lasse Reichstein > On Mon, Mar 12, 2012 at 8:33 AM, 程劭非 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-d

Re: The "name" and "length" property of JSON.parse and JSON.stringify

2012-03-12 Thread Lasse Reichstein
On Mon, Mar 12, 2012 at 8:33 AM, 程劭非 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.pars