Skip to content

Commit

Permalink
fixup! lib: fix module print timing when specifier includes "
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Sep 28, 2024
1 parent 030caee commit bda9e62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-module-print-timing.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ it('should support enable tracing dynamically', async () => {


const outputFile = tmpdir.resolve('output-dynamic-trace.log');
let requireFileWithDoubleQuote = ''
let requireFileWithDoubleQuote = '';
if (!isWindows) {
// Double quotes are not valid char for a path on Windows.
const fileWithDoubleQuote = tmpdir.resolve('filename-with-"double"-quotes.cjs');
writeFileSync(fileWithDoubleQuote, ';\n');
requireFileWithDoubleQuote = `require(${JSON.stringify(fileWithDoubleQuote)});`
requireFileWithDoubleQuote = `require(${JSON.stringify(fileWithDoubleQuote)});`;
}
const jsScript = `
const traceEvents = require("trace_events");
Expand Down

0 comments on commit bda9e62

Please sign in to comment.