Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Fix node 4/6 on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gaofanmichael committed Oct 12, 2017
1 parent 89cf41c commit 0508566
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/agent/debuglet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export class Debuglet extends EventEmitter {
'traces. The above warning will not affect the debug agent.');
}
});

const that = this;
const stat = promisify(fs.stat);

Expand Down
14 changes: 9 additions & 5 deletions test/test-debuglet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,16 @@ describe('Debuglet', function() {
assert.equal((debuglet.debuggee_ as Debuggee).project, projectId);
console.log = oldLog;
const arch = process.arch;
if (arch === 'ia32' || arch === 'x86') {
assert(logText.includes('The current debug agent does not use '
+ 'Inspector async stack traces'));
console.log(process);
if (parseFloat(process.version) > 8 &&
(arch === 'ia32' || arch === 'x86')) {
assert(logText.includes(
'The current debug agent does not use ' +
'Inspector async stack traces'));
} else {
assert(!logText.includes('The current debug agent does not use '
+ 'Inspector async stack traces'));
assert(!logText.includes(
'The current debug agent does not use ' +
'Inspector async stack traces'));
}
debuglet.stop();
scope.done();
Expand Down

0 comments on commit 0508566

Please sign in to comment.