feat(runtime): align raw context AToB intrinsic#743
Conversation
buke
commented
May 22, 2026
- add an AToB option to raw-context intrinsic selection
- wire JS_AddIntrinsicAToB into applyIntrinsics and AllIntrinsics
- cover raw-context AToB behavior and failure hooks in runtime tests
- add an AToB option to raw-context intrinsic selection - wire JS_AddIntrinsicAToB into applyIntrinsics and AllIntrinsics - cover raw-context AToB behavior and failure hooks in runtime tests
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #743 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 3705 3709 +4
=========================================
+ Hits 3705 3709 +4
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Code Review
This pull request introduces support for atob and btoa intrinsics in the runtime. It adds an AToB option to the IntrinsicSet, provides a WithAToB configuration function, and updates the intrinsic application logic to include the new functionality. Comprehensive tests were added to verify the behavior of these intrinsics when enabled or disabled, including error handling scenarios. I have no feedback to provide.