Skip to content

Commit d92d29a

Browse files
author
Ives van Hoorne
committed
Add check for dll_bundle existence
1 parent bba748e commit d92d29a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sandbox/eval/loaders/dependency-resolver.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ export default function getDependency(
2626
try {
2727
return window.dll_bundle(idMatch[1]);
2828
} catch (e) {
29-
// Delete the cache of the throwing dependency
30-
delete window.dll_bundle.c[idMatch[1]];
29+
if (window.dll_bundle) {
30+
// Delete the cache of the throwing dependency
31+
delete window.dll_bundle.c[idMatch[1]];
32+
}
3133
throw e;
3234
}
3335
}

0 commit comments

Comments
 (0)