You can contact me at

Some extensions I wrote:

Open In Browser


Yo, a week-ish ago you made a change to Array.prototype.splice docs here for what you say is a SpiderMonkey extension. Are you sure that this extension's real? The following test code on the latest trunk SpiderMonkey seems to say it's not:

js> var c = [1, 2, 3, 4, 5];
js> c.splice(3, {foo: 7}, {ar: 3});

js> c
1,2,3,[object Object],4,5
js> c[3].toSource()

It looks like splice tries to convert {foo: 7} to a Number, gets NaN, converts that to the uint32 0, and then removes nothing and inserts only the second object. --Waldo 01:43, 2 July 2007 (PDT)

The Spidermonkey extension is to give just one argument, but my square bracket usage was not correct. I've fixed that, thanks for catching it.

--SylvainPasche 03:15, 2 July 2007 (PDT)

Document Tags and Contributors

 Last updated by: SylvainPasche,