Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 14 files). Show all
Unified · Split
| @@ -1322,7 +1322,7 @@ ScriptValue ScriptManager::newModule(const QString& modulePath, const ScriptValu · 1321 unmodified lines | |||
| 1322 | auto closure = _engine->newObject(); | 1322 | auto closure = _engine->newObject(); |
| 1323 | auto exports = _engine->newObject(); | 1323 | auto exports = _engine->newObject(); |
| 1324 | auto module = _engine->newObject(); | 1324 | auto module = _engine->newObject(); |
| 1325 | qCDebug(scriptengine_module) << "newModule" << parent.property("filename").toString(); | 1325 | //qCDebug(scriptengine_module) << "newModule" << parent.property("filename").toString(); |
| 1326 | 1326 | ||
| 1327 | closure.setProperty("module", module, READONLY_PROP_FLAGS); | 1327 | closure.setProperty("module", module, READONLY_PROP_FLAGS); |
| 1328 | 1328 | ||
| @@ -1530,7 +1530,7 @@ ScriptValue ScriptManager::require(const QString& moduleId) { · 201 unmodified lines | |||
| 1530 | // set up a new reference point for detecting cache key deletion | 1530 | // set up a new reference point for detecting cache key deletion |
| 1531 | cacheMeta.setProperty(modulePath, module); | 1531 | cacheMeta.setProperty(modulePath, module); |
| 1532 | 1532 | ||
| 1533 | qCDebug(scriptengine_module) << "//ScriptManager::require(" << moduleId << ")"; | 1533 | //qCDebug(scriptengine_module) << "//ScriptManager::require(" << moduleId << ")"; |
| 1534 | 1534 | ||
| 1535 | _engine->maybeEmitUncaughtException(__FUNCTION__); | 1535 | _engine->maybeEmitUncaughtException(__FUNCTION__); |
| 1536 | //qCDebug(scriptengine_module) << "Exports: " << _engine->scriptValueDebugDetails(module.property("exports")); | 1536 | //qCDebug(scriptengine_module) << "Exports: " << _engine->scriptValueDebugDetails(module.property("exports")); |