GeezerVison is showing github.com — fs: replace `SetMethodNoSideEffect` in node_file · nodejs/node@ec323bb
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: src/node_file.cc +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3417,15 +3417,15 @@ static void CreatePerIsolateProperties(IsolateData* isolate_data, | 3417 | 3417 | Isolate* isolate = isolate_data->isolate(); | 3418 | 3418 |
| 3419 | 3419 | SetMethod(isolate, target, "access", Access); | 3420 | | - SetMethodNoSideEffect(isolate, target, "accessSync", AccessSync); | | 3420 | + SetMethod(isolate, target, "accessSync", AccessSync); | 3421 | 3421 | SetMethod(isolate, target, "close", Close); | 3422 | 3422 | SetMethod(isolate, target, "closeSync", CloseSync); | 3423 | | - SetMethodNoSideEffect(isolate, target, "existsSync", ExistsSync); | | 3423 | + SetMethod(isolate, target, "existsSync", ExistsSync); | 3424 | 3424 | SetMethod(isolate, target, "open", Open); | 3425 | 3425 | SetMethod(isolate, target, "openSync", OpenSync); | 3426 | 3426 | SetMethod(isolate, target, "openFileHandle", OpenFileHandle); | 3427 | 3427 | SetMethod(isolate, target, "read", Read); | 3428 | | - SetMethodNoSideEffect(isolate, target, "readFileUtf8", ReadFileUtf8); | | 3428 | + SetMethod(isolate, target, "readFileUtf8", ReadFileUtf8); | 3429 | 3429 | SetMethod(isolate, target, "readBuffers", ReadBuffers); | 3430 | 3430 | SetMethod(isolate, target, "fdatasync", Fdatasync); | 3431 | 3431 | SetMethod(isolate, target, "fsync", Fsync); | @@ -3452,7 +3452,7 @@ static void CreatePerIsolateProperties(IsolateData* isolate_data, | 3452 | 3452 | SetMethod(isolate, target, "writeString", WriteString); | 3453 | 3453 | SetMethod(isolate, target, "realpath", RealPath); | 3454 | 3454 | SetMethod(isolate, target, "copyFile", CopyFile); | 3455 | | - SetMethodNoSideEffect(isolate, target, "copyFileSync", CopyFileSync); | | 3455 | + SetMethod(isolate, target, "copyFileSync", CopyFileSync); | 3456 | 3456 |
| 3457 | 3457 | SetMethod(isolate, target, "chmod", Chmod); | 3458 | 3458 | SetMethod(isolate, target, "fchmod", FChmod); | |
|