Don't use messages for errors by default
Use empty string for message property of builtin error objects by default. Add ERROR_MESSAGES build option. JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -31,7 +31,6 @@ try
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
assert (e.message === "Incompatible type");
|
||||
}
|
||||
|
||||
var date = new Date(0);
|
||||
@@ -56,7 +55,6 @@ try
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
assert (e.message === "Incompatible type");
|
||||
}
|
||||
|
||||
assert (new Date (NaN).toTimeString () == "Invalid Date");
|
||||
@@ -72,7 +70,6 @@ try
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
assert (e.message === "Incompatible type");
|
||||
}
|
||||
|
||||
assert (new Date ("2015-07-16").toISOString () == "2015-07-16T00:00:00.000Z");
|
||||
@@ -106,7 +103,6 @@ try
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
assert (e.message === "Incompatible type");
|
||||
}
|
||||
|
||||
assert (new Date (NaN).toUTCString () == "Invalid Date");
|
||||
@@ -121,7 +117,6 @@ try
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
assert (e.message === "Incompatible type");
|
||||
}
|
||||
|
||||
assert (new Date (NaN).toJSON () == null);
|
||||
|
||||
@@ -21,5 +21,4 @@ try
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof SyntaxError);
|
||||
assert (e.message === "Unexpected end of paren.");
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@ try {
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
assert (e.message === "Incomplete RegExp type");
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -30,7 +29,6 @@ try {
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
assert (e.message === "Incomplete RegExp type");
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -40,5 +38,4 @@ try {
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
assert (e.message === "Incomplete RegExp type");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user