sourceUrl

This commit is contained in:
Yuri Kuznetsov
2022-08-10 09:53:57 +03:00
parent 14cb5730b5
commit 09f9cbf3df
+6 -3
View File
@@ -159,8 +159,9 @@
* @private
* @param {string} script
* @param {string} name
* @param {string} path
*/
_execute: function (script, name) {
_execute: function (script, name, path) {
/** @var {?string} */
let module = null;
@@ -176,6 +177,8 @@
noStrictMode = true;
}
script += `\n//# sourceURL=/${path}`;
// For bc.
if (module && module !== 'crm') {
noStrictMode = true;
@@ -548,7 +551,7 @@
}
if (dataType === 'script') {
this._execute(cached, name);
this._execute(cached, name, dto.path);
}
if (type === 'class') {
@@ -635,7 +638,7 @@
}
if (dataType === 'script') {
this._execute(response, name);
this._execute(response, name, dto.path);
}
let data;