Index: Source/core/testing/UnionTypesTest.cpp |
diff --git a/Source/core/testing/UnionTypesTest.cpp b/Source/core/testing/UnionTypesTest.cpp |
index d03e2985e6f82c2575e5dec4314e143f609aed86..5e34b96cf0ad2e699b7e18fd6d53499783c32285 100644 |
--- a/Source/core/testing/UnionTypesTest.cpp |
+++ b/Source/core/testing/UnionTypesTest.cpp |
@@ -40,7 +40,8 @@ void UnionTypesTest::setDoubleOrStringAttribute(const DoubleOrString& doubleOrSt |
String UnionTypesTest::doubleOrStringArg(DoubleOrString& doubleOrString) |
{ |
- ASSERT(!doubleOrString.isNull()); |
+ if (doubleOrString.isNull()) |
+ return "null is passed"; |
if (doubleOrString.isDouble()) |
return "double is passed: " + String::numberToStringECMAScript(doubleOrString.getAsDouble()); |
if (doubleOrString.isString()) |