| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2482,7 +2482,6 @@ static void WriteString(const FunctionCallbackInfo<Value>& args) { | |||
| 2482 | 2482 | } | |
| 2483 | 2483 | } else { // write(fd, string, pos, enc, undefined, ctx) | |
| 2484 | 2484 | CHECK_EQ(argc, 6); | |
| 2485 | - FSReqWrapSync req_wrap_sync; | ||
| 2486 | 2485 | FSReqBase::FSReqBuffer stack_buffer; | |
| 2487 | 2486 | if (buf == nullptr) { | |
| 2488 | 2487 | if (!StringBytes::StorageSize(isolate, value, enc).To(&len)) | |
@@ -2496,6 +2495,7 @@ static void WriteString(const FunctionCallbackInfo<Value>& args) { | |||
| 2496 | 2495 | buf = *stack_buffer; | |
| 2497 | 2496 | } | |
| 2498 | 2497 | uv_buf_t uvbuf = uv_buf_init(buf, len); | |
| 2498 | + FSReqWrapSync req_wrap_sync("write"); | ||
| 2499 | 2499 | FS_SYNC_TRACE_BEGIN(write); | |
| 2500 | 2500 | int bytesWritten = SyncCall(env, args[5], &req_wrap_sync, "write", | |
| 2501 | 2501 | uv_fs_write, fd, &uvbuf, 1, pos); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments