This repository was archived by the owner on Jul 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 21
21
function Module ( ) { }
22
22
function Loader ( options ) {
23
23
options = options || { } ;
24
-
24
+
25
25
if ( options . normalize )
26
26
this . normalize = options . normalize ;
27
27
if ( options . locate )
@@ -55,7 +55,7 @@ function Loader(options) {
55
55
}
56
56
57
57
( function ( ) {
58
-
58
+
59
59
// Some Helpers
60
60
61
61
// logs a linkset snapshot for debugging
@@ -281,7 +281,7 @@ function logloads(loads) {
281
281
// store the deps as load.deps
282
282
load . declare = declare ;
283
283
load . depsList = deps ;
284
- }
284
+ }
285
285
// empty {} context is closest to undefined 'this' we can get
286
286
__eval ( transpiled , load . address , { } ) ;
287
287
curSystem . register = curRegister ;
@@ -535,10 +535,11 @@ function logloads(loads) {
535
535
var loader = linkSet . loader ;
536
536
537
537
if ( load ) {
538
- if ( linkSet . loads [ 0 ] . name != load . name )
538
+ if ( load && linkSet . loads [ 0 ] . name != load . name )
539
539
exc = addToError ( exc , 'Error loading "' + load . name + '" from "' + linkSet . loads [ 0 ] . name + '" at ' + ( linkSet . loads [ 0 ] . address || '<unknown>' ) ) ;
540
540
541
- exc = addToError ( exc , 'Error loading "' + load . name + '" at ' + ( load . address || '<unknown>' ) ) ;
541
+ if ( load )
542
+ exc = addToError ( exc , 'Error loading "' + load . name + '" at ' + ( load . address || '<unknown>' ) ) ;
542
543
}
543
544
else {
544
545
exc = addToError ( exc , 'Error linking "' + linkSet . loads [ 0 ] . name + '" at ' + ( linkSet . loads [ 0 ] . address || '<unknwon>' ) ) ;
You can’t perform that action at this time.
0 commit comments