Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 5 files). Show all
Unified · Split
| @@ -1422,6 +1422,7 @@ ScriptValue ScriptManager::instantiateModule(const ScriptValue& module, const QS · 1421 unmodified lines | ||
| 1422 | 1422 | closure.setProperty("require", module.property("require")); |
| 1423 | 1423 | closure.setProperty("__filename", modulePath, READONLY_HIDDEN_PROP_FLAGS); |
| 1424 | 1424 | closure.setProperty("__dirname", QString(modulePath).replace(QRegExp("/[^/]*$"), ""), READONLY_HIDDEN_PROP_FLAGS); |
| 1425 | + _engine->scriptValueDebugDetails(module); | |
| 1425 | 1426 | result = _engine->evaluateInClosure(closure, _engine->newProgram( sourceCode, modulePath )); |
| 1426 | 1427 | } |
| 1427 | 1428 | _engine->maybeEmitUncaughtException(__FUNCTION__); |