refactor(napi/oxlint): move creating JS buffer into separate function#13133
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull Request Overview
This PR extracts buffer creation logic into a separate function to prepare for future multi-threading support for JS plugins. The refactoring moves the complex buffer management code that handles allocator metadata and JS buffer transfer into its own dedicated function.
- Extracted buffer creation and metadata handling into a new
get_bufferfunction - Moved detailed documentation about buffer lifecycle management to the new function
- Maintained the same functionality while improving code organization
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Merge activity
|
…#13133) Refactor only. Move block of code for creating a JS buffer out into its own function. This code is going to get more complicated to accommodate JS plugins on multiple threads.
3a1001c to
c8b97de
Compare

Refactor only. Move block of code for creating a JS buffer out into its own function. This code is going to get more complicated to accommodate JS plugins on multiple threads.