| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2423,7 +2423,6 @@ static void WriteString(const FunctionCallbackInfo<Value>& args) { | |||
| 2423 | 2423 | } | |
| 2424 | 2424 | } else { // write(fd, string, pos, enc, undefined, ctx) | |
| 2425 | 2425 | CHECK_EQ(argc, 6); | |
| 2426 | - FSReqWrapSync req_wrap_sync; | ||
| 2427 | 2426 | FSReqBase::FSReqBuffer stack_buffer; | |
| 2428 | 2427 | if (buf == nullptr) { | |
| 2429 | 2428 | if (!StringBytes::StorageSize(isolate, value, enc).To(&len)) | |
@@ -2437,6 +2436,7 @@ static void WriteString(const FunctionCallbackInfo<Value>& args) { | |||
| 2437 | 2436 | buf = *stack_buffer; | |
| 2438 | 2437 | } | |
| 2439 | 2438 | uv_buf_t uvbuf = uv_buf_init(buf, len); | |
| 2439 | + FSReqWrapSync req_wrap_sync("write"); | ||
| 2440 | 2440 | FS_SYNC_TRACE_BEGIN(write); | |
| 2441 | 2441 | int bytesWritten = SyncCall(env, args[5], &req_wrap_sync, "write", | |
| 2442 | 2442 | uv_fs_write, fd, &uvbuf, 1, pos); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments