Commit 9497d364 authored by Liang Qi's avatar Liang Qi
Browse files

Merge remote-tracking branch 'origin/5.5' into dev

Change-Id: I40f55a4eabaf2d0d6bcda0a4b6111b27130f24f3
Showing with 22 additions and 1 deletion
...@@ -59,7 +59,10 @@ Item UnaryExpression::evaluateSingleton(const DynamicContext::Ptr &context) cons ...@@ -59,7 +59,10 @@ Item UnaryExpression::evaluateSingleton(const DynamicContext::Ptr &context) cons
{ {
const Item item(m_operand2->evaluateSingleton(context)); const Item item(m_operand2->evaluateSingleton(context));
if(item) if (item)
// If the item is an untypedAtomic (or atomicString), the cast to Numeric will
// return a garbage object and will most likely cause a crash.
// There is simply no way to static cast from an instance of AtomicString to a Number.
return item.as<Numeric>()->toNegated(); return item.as<Numeric>()->toNegated();
else else
return Item(); return Item();
......
...@@ -77,6 +77,24 @@ TestResult::List TestCase::execute(const ExecutionStage stage, ...@@ -77,6 +77,24 @@ TestResult::List TestCase::execute(const ExecutionStage stage,
result.append(createTestResult(TestResult::Fail, QLatin1String("Skipped this test, we crash on it."))); result.append(createTestResult(TestResult::Fail, QLatin1String("Skipped this test, we crash on it.")));
return result; return result;
} }
else if (name() == QLatin1String("op-numeric-unary-minus-1"))
{
TestResult::List result;
result.append(createTestResult(TestResult::Fail, QLatin1String("Skipped this test, we crash on it.")));
return result;
}
else if (name() == QLatin1String("emptyorderdecl-13"))
{
TestResult::List result;
result.append(createTestResult(TestResult::Fail, QLatin1String("Skipped this test, we crash on it.")));
return result;
}
else if (name() == QLatin1String("emptyorderdecl-21"))
{
TestResult::List result;
result.append(createTestResult(TestResult::Fail, QLatin1String("Skipped this test, we crash on it.")));
return result;
}
qDebug() << "Running test case: " << name(); qDebug() << "Running test case: " << name();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment