File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -571,16 +571,8 @@ namespace Reflect {
571
571
} ;
572
572
}
573
573
574
- function functionThis ( ) {
575
- try { return Function ( "return this;" ) ( ) ; } catch ( _ ) { }
576
- }
577
-
578
- function indirectEvalThis ( ) {
579
- try { return ( void 0 , eval ) ( "(function() { return this; })()" ) ; } catch ( _ ) { }
580
- }
581
-
582
- function sloppyModeThis ( ) {
583
- return functionThis ( ) || indirectEvalThis ( ) ;
574
+ function sloppyModeThis ( ) : never {
575
+ throw new ReferenceError ( "globalThis could not be found. Please polyfill globalThis before loading this module." ) ;
584
576
}
585
577
} )
586
578
( function ( exporter , root ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " reflect-metadata" ,
3
- "version" : " 0.2.0-pre.0 " ,
3
+ "version" : " 0.2.0" ,
4
4
"description" : " Polyfill for Metadata Reflection API" ,
5
5
"type" : " commonjs" ,
6
6
"main" : " Reflect.js" ,
You can’t perform that action at this time.
0 commit comments