Skip to content

Add process.cwd()#4603

Merged
jedel1043 merged 2 commits intoboa-dev:mainfrom
randomboi404:add-process-methods
Feb 9, 2026
Merged

Add process.cwd()#4603
jedel1043 merged 2 commits intoboa-dev:mainfrom
randomboi404:add-process-methods

Conversation

@randomboi404
Copy link
Contributor

It changes the following:

  1. Uses a provider pattern so as to allow custom ProcessProvider for embedded systems where using the default StdProcessProvider will not be proper.

  2. Adds process.cwd() so as to allow:

./boa
>> process.cwd()
"/root/boa"

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Test262 conformance changes

Test result main count PR count difference
Total 52,862 52,862 0
Passed 49,471 49,471 0
Ignored 2,249 2,249 0
Failed 1,142 1,142 0
Panics 0 0 0
Conformance 93.59% 93.59% 0.00%

@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

❌ Patch coverage is 0% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.50%. Comparing base (6ddc2b4) to head (16067b3).
⚠️ Report is 647 commits behind head on main.

Files with missing lines Patch % Lines
core/runtime/src/process/mod.rs 0.00% 23 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4603      +/-   ##
==========================================
+ Coverage   47.24%   56.50%   +9.25%     
==========================================
  Files         476      548      +72     
  Lines       46892    60090   +13198     
==========================================
+ Hits        22154    33952   +11798     
- Misses      24738    26138    +1400     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

Implementation wise looks great! I just have an API suggestion and a comment on the error thrown when calling current_dir().

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you for the contribution!

@jedel1043 jedel1043 added this pull request to the merge queue Feb 9, 2026
Merged via the queue into boa-dev:main with commit 195d259 Feb 9, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants