Actions
Bug #160
closedQScriptEngine fails to create function objects
Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
2013-10-27
Due date:
% Done:
0%
Estimated time:
Description
Source code (also attached):
#include <QtCore/QtCore> #include <QtScript/QtScript> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QScriptEngine engine; QScriptValue aValue = engine.evaluate("2+3"); qDebug() << "aValue:" << aValue.toString(); QScriptValue aFunction = engine.evaluate("(function(a,b) {return a+b;})"); qDebug() << "aFunction:" << aFunction.toString(); QScriptValue jsonParser = engine.evaluate(QLatin1String("JSON.parse")); qDebug() << "jsonParser:" << jsonParser.toString(); return 0; }
On Linux:
# ./qscript aValue: "5" aFunction: "function (a, b) {return a+b;}" jsonParser: "function parse() { [native code] }"
On Dyson:
# ./qscript aValue: "5" aFunction: "-12571136" jsonParser: "undefined"
Files
Updated by Igor Pashev about 11 years ago
- File dyson-js-solaris-memory-layout.patch dyson-js-solaris-memory-layout.patch added
- Status changed from New to Resolved
Actions