Repository navigation
Conversation
ChangelogNo changelog entry. Semantic Diff1 commit · Full page Preserve captured relative externals outside dynamic importc780522 · cknitt + Claude · Dec 03, 2026, 19:06 UTC
JS modified (ordinary read of a relative external)
let value = Fixture.counter.value;
-return [Fixture.counter.value, Fixture.counter.value];
+return [value, value];Review
|
✅ Compiler benchmarksAllocated wordsIn total: 653,177,168 → 653,221,652 (+0.01%). Generated projects: 627,295,178 → 627,358,502 (+0.01%). None of the 265 benchmarks changed by 0.1% or more. InstructionsIn total: 8,966,820,936 → 8,967,195,227 (±0.00%). None of the 33 benchmarks changed by 0.1% or more. Output sizeIn total: 27,449,936 → 27,450,182 (±0.00%). None of the 13 benchmarks changed by 0.1% or more. Pull request c780522 compared with base 7968a96 in this run. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9516 +/- ##
=======================================
Coverage 82.54% 82.54%
=======================================
Files 469 468 -1
Lines 66231 66237 +6
=======================================
+ Hits 54670 54678 +8
+ Misses 11561 11559 -2
🚀 New features to boost your workflow:
|
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-9516 |
bad5845 to
4b6e97e
Compare
|
@codex review Requested by Christoph's dot. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
4b6e97e to
2ca4372
Compare
Why:
Restoring the primitive to normal local references re-read properties
and changed the receiver of tagged template calls. Keep the binding a
value and recover primitive metadata only when lowering dynamic import.
JS modified (ordinary read of a relative external):
Before (js):
let value = Fixture.counter.value;
return [Fixture.counter.value, Fixture.counter.value];
After (js):
let value = Fixture.counter.value;
return [value, value];
Review: Does the fix keep FFI adaptation for dynamic imports? Yes, both native import paths still see the original primitive metadata. The nullable relative import fixture exercises the adapted path.
Signed-off-by: Codex <codex@openai.com>
Signed-off-by: Christoph Knittel <christoph@knittel.cc>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gH77iLiiwQFwN8mRDU
2ca4372 to
c780522
Compare
|
@codex review Requested by Christoph's dot for the updated green commit |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #9515. Follow-up to #9506.
Change
Keep ordinary same-file references to relative externals as regular value bindings. Recover the original primitive by the local binding identifier only during dynamic-import translation, so named/default imports and imports requiring FFI adaptation keep working. Qualified references still use the module signature.
Verification
@return(nullable)dynamic import; it returnedSomefor a present value andNonefornull.node scripts/test.js -mochapassed (1,135 tests).No changelog fragment: this fixes a regression from #9506, which ships in the same release.
Prepared by Christoph's dot.