return if undefined

This commit is contained in:
shaodahong 2020-09-03 23:14:11 +08:00
parent d76f72e0c7
commit e29e3cdc0d
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class ContainerEntryModule extends Module {
");"
])};`,
`var init = ${runtimeTemplate.basicFunction("shareScope", [
`if (!${RuntimeGlobals.shareScopeMap}) throw new Error("Container has no share scope to initialization")`,
`if (!${RuntimeGlobals.shareScopeMap}) return;`,
`var oldScope = ${RuntimeGlobals.shareScopeMap}[${JSON.stringify(
this._shareScope
)}];`,