Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 7bd753c

Browse files
committed
Make System global always.
Otherwise we can't get to it in ES6
1 parent 09e398a commit 7bd753c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/system.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,6 @@
217217
}
218218
System.paths = { '*': '*.js' };
219219

220-
if (global.System && global.traceur)
221-
global.traceurSystem = global.System;
222-
223-
if (isBrowser)
224-
global.System = System;
225-
226220
// <script type="module"> support
227221
// allow a data-init function callback once loaded
228222
if (isBrowser) {
@@ -264,4 +258,8 @@
264258
if (typeof exports === 'object')
265259
module.exports = System;
266260

261+
if (global.System && global.traceur)
262+
global.traceurSystem = global.System;
263+
global.System = System;
264+
267265
})(typeof global !== 'undefined' ? global : this);

0 commit comments

Comments
 (0)