This repository was archived by the owner on Jul 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +287
-286
lines changed Expand file tree Collapse file tree 5 files changed +287
-286
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ function logloads(loads) {
116
116
}
117
117
return - 1 ;
118
118
} ;
119
+ var defineProperty = $__Object$defineProperty ;
119
120
120
121
// 15.2.3 - Runtime Semantics: Loader State
121
122
@@ -1079,32 +1080,3 @@ function logloads(loads) {
1079
1080
1080
1081
} ) ( ) ;
1081
1082
1082
- // Define our eval outside of the scope of any other reference defined in this
1083
- // file to avoid adding those references to the evaluation scope.
1084
- var __curRegister ;
1085
- function __eval ( __source , __global , load ) {
1086
- // Hijack System.register to set declare function
1087
- __curRegister = System . register ;
1088
- System . register = function ( name , deps , declare ) {
1089
- if ( typeof name != 'string' ) {
1090
- declare = deps ;
1091
- deps = name ;
1092
- }
1093
- // store the registered declaration as load.declare
1094
- // store the deps as load.deps
1095
- load . declare = declare ;
1096
- load . depsList = deps ;
1097
- }
1098
- try {
1099
- eval ( '(function() { var __moduleName = "' + ( load . name || '' ) . replace ( '"' , '\"' ) + '"; ' + __source + ' \n }).call(__global);' ) ;
1100
- }
1101
- catch ( e ) {
1102
- if ( e . name == 'SyntaxError' || e . name == 'TypeError' )
1103
- e . message = 'Evaluating ' + ( load . name || load . address ) + '\n\t' + e . message ;
1104
- throw e ;
1105
- }
1106
-
1107
- System . register = __curRegister ;
1108
- }
1109
-
1110
-
Original file line number Diff line number Diff line change 1
1
2
+ // Define our eval outside of the scope of any other reference defined in this
3
+ // file to avoid adding those references to the evaluation scope.
4
+ function __eval ( __source , __global , load ) {
5
+ // Hijack System.register to set declare function
6
+ var __curRegister = System . register ;
7
+ System . register = function ( name , deps , declare ) {
8
+ if ( typeof name != 'string' ) {
9
+ declare = deps ;
10
+ deps = name ;
11
+ }
12
+ // store the registered declaration as load.declare
13
+ // store the deps as load.deps
14
+ load . declare = declare ;
15
+ load . depsList = deps ;
16
+ }
17
+ try {
18
+ eval ( '(function() { var __moduleName = "' + ( load . name || '' ) . replace ( '"' , '\"' ) + '"; ' + __source + ' \n }).call(__global);' ) ;
19
+ }
20
+ catch ( e ) {
21
+ if ( e . name == 'SyntaxError' || e . name == 'TypeError' )
22
+ e . message = 'Evaluating ' + ( load . name || load . address ) + '\n\t' + e . message ;
23
+ throw e ;
24
+ }
25
+
26
+ System . register = __curRegister ;
27
+ }
28
+
2
29
} ) ( typeof global !== 'undefined' ? global : this ) ;
Original file line number Diff line number Diff line change 1
1
( function ( __global ) {
2
2
3
- $__Object$getPrototypeOf = Object . getPrototypeOf || function ( obj ) {
4
- return obj . __proto__ ;
5
- } ;
3
+ $__Object$getPrototypeOf = Object . getPrototypeOf || function ( obj ) {
4
+ return obj . __proto__ ;
5
+ } ;
6
6
7
- var defineProperty ;
8
- ( function ( ) {
9
- try {
10
- if ( ! ! Object . defineProperty ( { } , 'a' , { } ) ) {
11
- defineProperty = Object . defineProperty ;
12
- }
13
- } catch ( e ) {
14
- defineProperty = function ( obj , prop , opt ) {
15
- try {
16
- obj [ prop ] = opt . value || opt . get . call ( obj ) ;
17
- }
18
- catch ( e ) { }
7
+ var $__Object$defineProperty ;
8
+ ( function ( ) {
9
+ try {
10
+ if ( ! ! Object . defineProperty ( { } , 'a' , { } ) ) {
11
+ $__Object$defineProperty = Object . defineProperty ;
12
+ }
13
+ } catch ( e ) {
14
+ $__Object$defineProperty = function ( obj , prop , opt ) {
15
+ try {
16
+ obj [ prop ] = opt . value || opt . get . call ( obj ) ;
19
17
}
18
+ catch ( e ) { }
20
19
}
21
- } ( ) ) ;
22
- $__Object$defineProperty = defineProperty ;
20
+ }
21
+ } ( ) ) ;
23
22
24
- $__Object$create = Object . create || function ( o , props ) {
25
- function F ( ) { }
26
- F . prototype = o ;
23
+ $__Object$create = Object . create || function ( o , props ) {
24
+ function F ( ) { }
25
+ F . prototype = o ;
27
26
28
- if ( typeof ( props ) === "object" ) {
29
- for ( prop in props ) {
30
- if ( props . hasOwnProperty ( ( prop ) ) ) {
31
- F [ prop ] = props [ prop ] ;
32
- }
27
+ if ( typeof ( props ) === "object" ) {
28
+ for ( prop in props ) {
29
+ if ( props . hasOwnProperty ( ( prop ) ) ) {
30
+ F [ prop ] = props [ prop ] ;
33
31
}
34
32
}
35
- return new F ( ) ;
36
- } ;
33
+ }
34
+ return new F ( ) ;
35
+ } ;
You can’t perform that action at this time.
0 commit comments