File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
// safari unpredictably lists some new globals first or second in object order
10
10
var firstGlobalProp , secondGlobalProp , lastGlobalProp ;
11
- function getGlobalProp ( ) {
11
+ function getGlobalProp ( useFirstGlobalProp ) {
12
12
var cnt = 0 ;
13
13
var foundLastProp , result ;
14
14
for ( var p in global ) {
19
19
return p ;
20
20
if ( foundLastProp ) {
21
21
lastGlobalProp = p ;
22
- result = systemJSPrototype . firstGlobalProp && result || p ;
22
+ result = useFirstGlobalProp && result || p ;
23
23
}
24
24
else {
25
25
foundLastProp = p === lastGlobalProp ;
64
64
// when multiple globals, we take the global value to be the last defined new global object property
65
65
// for performance, this will not support multi-version / global collisions as previous SystemJS versions did
66
66
// note in Edge, deleting and re-adding a global does not change its ordering
67
- var globalProp = getGlobalProp ( ) ;
67
+ var globalProp = getGlobalProp ( this . firstGlobalProp ) ;
68
68
if ( ! globalProp )
69
69
return emptyInstantiation ;
70
70
You can’t perform that action at this time.
0 commit comments