Skip to content

refactor(napi/oxlint): move creating JS buffer into separate function#13133

Merged
graphite-app[bot] merged 1 commit intomainfrom
08-15-refactor_napi_parser_move_creating_js_buffer_into_separate_function
Aug 16, 2025
Merged

refactor(napi/oxlint): move creating JS buffer into separate function#13133
graphite-app[bot] merged 1 commit intomainfrom
08-15-refactor_napi_parser_move_creating_js_buffer_into_separate_function

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Aug 15, 2025

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.

@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Aug 15, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_buffer function
  • 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.

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Aug 16, 2025
Copy link
Contributor

camc314 commented Aug 16, 2025

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.
@graphite-app graphite-app bot force-pushed the 08-15-refactor_napi_parser_move_creating_js_buffer_into_separate_function branch from 3a1001c to c8b97de Compare August 16, 2025 11:55
@graphite-app graphite-app bot merged commit c8b97de into main Aug 16, 2025
17 checks passed
@graphite-app graphite-app bot deleted the 08-15-refactor_napi_parser_move_creating_js_buffer_into_separate_function branch August 16, 2025 12:01
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 16, 2025
@overlookmotel overlookmotel changed the title refactor(napi/parser): move creating JS buffer into separate function refactor(napi/oxlint): move creating JS buffer into separate function Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants