Skip to content

Commit 01a1793

Browse files
committed
fix: Symbol('module').toString() is nonsense
1 parent 57c4eb5 commit 01a1793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/require.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const requireFromString = (
88
): any => {
99
checkArg(code)
1010

11-
const _module = new Module(Symbol('module').toString())
11+
const _module = new Module(String(new Date().valueOf()))
1212

1313
const context = createContext({
1414
__dirname,

0 commit comments

Comments
 (0)