Change 'assert' handle to pass only upon exactly 1 argument is received, and the argument is boolean true; update internal test suite correspondingly.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -116,7 +116,7 @@ var props = {
|
||||
|
||||
var obj3 = Object.create(obj, props);
|
||||
assert (obj3.prop1 === 1);
|
||||
assert (obj3.protoFunction());
|
||||
assert (obj3.protoFunction() === 3);
|
||||
try {
|
||||
assert (obj3.hey === undefined);
|
||||
obj3.hey();
|
||||
|
||||
@@ -18,7 +18,7 @@ assert ("hello".replace("", ":") === ":hello");
|
||||
|
||||
assert ("xabcxabcx".replace (/abc/g, "[$&][$`][$']") === "x[abc][x][xabcx]x[abc][xabcx][x]x");
|
||||
assert ("abc".replace (/a(b)c|d()/, "[$1][$01][$2][$02][$99][$123][$012]") === "[b][b][][][][3][b2]");
|
||||
assert ("abc".replace("abc", "$x$$5$0$00$" === "$x$5$0$00$"));
|
||||
assert ("abc".replace("abc", "$x$$5$0$00$") === "$x$5$0$00$");
|
||||
|
||||
assert ("a true true story".replace(true) === "a undefined true story");
|
||||
assert ("1234".replace(23, 32) === "1324");
|
||||
|
||||
Reference in New Issue
Block a user