File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,31 +7,31 @@ package kotlinx.io.node
7
7
8
8
internal actual val path: Path by lazy {
9
9
try {
10
- js(" require( \" path\" )" )
10
+ js(" eval(' require')(' path' )" )
11
11
} catch (e: Throwable ) {
12
12
throw UnsupportedOperationException (" Module 'path' could not be imported" , e)
13
13
}
14
14
}
15
15
16
16
internal actual val fs: Fs by lazy {
17
17
try {
18
- js(" require( \" fs \" )" )
18
+ js(" eval(' require')('fs' )" )
19
19
} catch (e: Throwable ) {
20
20
throw UnsupportedOperationException (" Module 'fs' could not be imported" , e)
21
21
}
22
22
}
23
23
24
24
internal actual val os: Os by lazy {
25
25
try {
26
- js(" require( \" os \" )" )
26
+ js(" eval(' require')('os' )" )
27
27
} catch (e: Throwable ) {
28
28
throw UnsupportedOperationException (" Module 'os' could not be imported" , e)
29
29
}
30
30
}
31
31
32
32
internal actual val buffer: BufferModule by lazy {
33
33
try {
34
- js(" require( \" buffer\" )" )
34
+ js(" eval(' require')(' buffer' )" )
35
35
} catch (e: Throwable ) {
36
36
throw UnsupportedOperationException (" Module 'buffer' could not be imported" , e)
37
37
}
You can’t perform that action at this time.
0 commit comments