Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/src/closure-externs/modularize-externs.js
4130 views
1
// In MODULARIZE mode the JS code may be executed later, after `document.currentScript` is gone, so we store
2
// it to `_scriptName` outside the wrapper function. Therefore, it cannot be minified.
3
// In EXPORT_ES6 mode we use `import.meta.url` and for Node.js CommonJS builds we use `__filename`.
4
5
/**
6
* @suppress {duplicate, undefinedVars}
7
*/
8
var _scriptName;
9
10