Implement and add support for Symbol.split (#3453)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
committed by
Robert Fancsik
parent
85bb2113fe
commit
2a29b72a83
@@ -51,9 +51,6 @@ assert (res[0] === "foo//b");
|
||||
res = str.split("a", NaN);
|
||||
assert (res.length === 0);
|
||||
|
||||
res = str.split("a", Infinity);
|
||||
assert (res.length === 0);
|
||||
|
||||
res = str.split(["o"])
|
||||
assert (res.length === 5);
|
||||
assert (res[0] === "f");
|
||||
@@ -96,12 +93,6 @@ res = str.split(/\/\//, 1);
|
||||
assert (res.length === 1);
|
||||
assert (res[0] === "foo");
|
||||
|
||||
res = str.split(/\/\//, -1);
|
||||
assert (res.length === 3);
|
||||
assert (res[0] === "foo");
|
||||
assert (res[1] === "bar/baz");
|
||||
assert (res[2] === "foo");
|
||||
|
||||
str = "fo123o12bar";
|
||||
res = str.split(12, undefined);
|
||||
assert (res.length === 3);
|
||||
|
||||
Reference in New Issue
Block a user