File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ declare var require: any;
25
25
declare var module : any ;
26
26
declare var process : any ;
27
27
declare var global : any ;
28
+ declare var __filename : string ;
28
29
29
30
var sys : System = ( function ( ) {
30
31
@@ -224,10 +225,10 @@ var sys: System = (function () {
224
225
}
225
226
} ,
226
227
getExecutingFilePath ( ) {
227
- return process . mainModule . filename ;
228
+ return __filename ;
228
229
} ,
229
230
getCurrentDirectory ( ) {
230
- return ( < any > process ) . cwd ( ) ;
231
+ return process . cwd ( ) ;
231
232
} ,
232
233
getMemoryUsage ( ) {
233
234
if ( global . gc ) {
Original file line number Diff line number Diff line change 25
25
// this will work in the browser via browserify
26
26
var _chai : typeof chai = require ( 'chai' ) ;
27
27
var assert : typeof _chai . assert = _chai . assert ;
28
- declare var __dirname : any ; // Node-specific
28
+ declare var __dirname : string ; // Node-specific
29
29
var global = < any > Function ( "return this" ) . call ( null ) ;
30
30
31
31
module Utils {
You can’t perform that action at this time.
0 commit comments