Skip to content

Commit 4cd8635

Browse files
resources: mark node's modules with 'node:' prefix (#3587)
1 parent 4d6382c commit 4cd8635

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

resources/benchmark.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ interface BenchmarkSample {
363363

364364
function sampleModule(modulePath: string): Promise<BenchmarkSample> {
365365
const sampleCode = `
366-
import assert from 'assert';
366+
import assert from 'node:assert';
367+
367368
assert(global.gc);
368369
assert(process.send);
369370

resources/gen-changelog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as https from 'https';
2-
import * as util from 'util';
1+
import * as https from 'node:https';
2+
import * as util from 'node:util';
33

44
import { execOutput, readPackageJSON } from './utils';
55

0 commit comments

Comments
 (0)