Fixed String.prototype.split. The property `length' should be 1 and not 2.

This commit is contained in:
Roberto Raggi
2010-01-26 12:38:52 +01:00
parent 0e93bf3b96
commit 3bb70c1c49

View File

@@ -1547,7 +1547,7 @@ void Engine::initializePrototypes()
addFunction(_stringPrototype, "replace", stringValue(), 2);
addFunction(_stringPrototype, "search", numberValue(), 1);
addFunction(_stringPrototype, "slice", stringValue(), 2);
addFunction(_stringPrototype, "split", newArray(), 2);
addFunction(_stringPrototype, "split", newArray(), 1);
addFunction(_stringPrototype, "substring", stringValue(), 2);
addFunction(_stringPrototype, "toLowerCase", stringValue(), 0);
addFunction(_stringPrototype, "toLocaleLowerCase", stringValue(), 0);