Repository navigation
Commit 8c2f65a
Adapt the linked module init error test to LibNode 26
With LibNode 26 the error thrown by a linked module's init function no
longer reaches the caller of process._linkedBinding(): Node.js
GetLinkedBinding() reads module.exports after the init function returns,
and that V8 API call clears the pending exception. This affects every
linked binding and is fixed in nodejs/node#67571.
The test now checks that the error does not stay pending on the
runtime's env, which fails without moving it to the module's env.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent b35a1e0 commit 8c2f65a
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
566 | 564 | | |
567 | 565 | | |
568 | 566 | | |
| |||
0 commit comments