Skip to content

Commit 783f64b

Browse files
authored
fs: replace SetMethodNoSideEffect in node_file
PR-URL: #49857 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 7e0b6a5 commit 783f64b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/node_file.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -3382,15 +3382,15 @@ static void CreatePerIsolateProperties(IsolateData* isolate_data,
33823382
Isolate* isolate = isolate_data->isolate();
33833383

33843384
SetMethod(isolate, target, "access", Access);
3385-
SetMethodNoSideEffect(isolate, target, "accessSync", AccessSync);
3385+
SetMethod(isolate, target, "accessSync", AccessSync);
33863386
SetMethod(isolate, target, "close", Close);
33873387
SetMethod(isolate, target, "closeSync", CloseSync);
3388-
SetMethodNoSideEffect(isolate, target, "existsSync", ExistsSync);
3388+
SetMethod(isolate, target, "existsSync", ExistsSync);
33893389
SetMethod(isolate, target, "open", Open);
33903390
SetMethod(isolate, target, "openSync", OpenSync);
33913391
SetMethod(isolate, target, "openFileHandle", OpenFileHandle);
33923392
SetMethod(isolate, target, "read", Read);
3393-
SetMethodNoSideEffect(isolate, target, "readFileUtf8", ReadFileUtf8);
3393+
SetMethod(isolate, target, "readFileUtf8", ReadFileUtf8);
33943394
SetMethod(isolate, target, "readBuffers", ReadBuffers);
33953395
SetMethod(isolate, target, "fdatasync", Fdatasync);
33963396
SetMethod(isolate, target, "fsync", Fsync);
@@ -3417,7 +3417,7 @@ static void CreatePerIsolateProperties(IsolateData* isolate_data,
34173417
SetMethod(isolate, target, "writeString", WriteString);
34183418
SetMethod(isolate, target, "realpath", RealPath);
34193419
SetMethod(isolate, target, "copyFile", CopyFile);
3420-
SetMethodNoSideEffect(isolate, target, "copyFileSync", CopyFileSync);
3420+
SetMethod(isolate, target, "copyFileSync", CopyFileSync);
34213421

34223422
SetMethod(isolate, target, "chmod", Chmod);
34233423
SetMethod(isolate, target, "fchmod", FChmod);

0 commit comments

Comments
 (0)