Change-Id: I21127d22f595b0ff88f6073bddf617423ad17867
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
QV4::Value getValue(QV4::ExecutionEngine *e) {
if (!this->e)
this->e = e;
+ else if (this->e != e) {
+ qWarning("JSValue can't be reassigned to another engine.");
+ return QV4::Value::emptyValue();
+ }
if (value.asString() == &string)
value = QV4::Value::fromString(e->newString(string.toQString()));
return value;
object->setProperty("compare", compare);
object->setProperty("pass", false);
- QTest::ignoreMessage(QtWarningMsg, "JSValue can't be rassigned to an another engine.");
+ QTest::ignoreMessage(QtWarningMsg, "JSValue can't be reassigned to another engine.");
emit object->signalWithVariant(QVariant::fromValue(value));
QVERIFY(!object->property("pass").toBool());
}