GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — ffi: define function pointer property as own data property by trivikr · Pull Request #67170 · nodejs/node Conversation
Member
Fixes: #67169
Assisted-by: claude:opus-5.5
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions`CreateFunction` assigned `pointer` with `Object::Set`, which walks `Function.prototype`. A non-writable inherited `pointer` turned the store into a silent no-op, so the function reported the inherited value instead of its native address. Use `CreateDataProperty`. Signed-off-by: Trivikram Kamat <[email protected]> Assisted-by: claude:opus-5.5
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #67170 +/- ## ========================================== - Coverage 90.68% 90.68% -0.01% ========================================== Files 797 797 Lines 278790 278790 Branches 53617 53607 -10 ========================================== - Hits 252834 252809 -25 - Misses 16303 16345 +42 + Partials 9653 9636 -17
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 2265763 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
`CreateFunction` assigned `pointer` with `Object::Set`, which walks `Function.prototype`. A non-writable inherited `pointer` turned the store into a silent no-op, so the function reported the inherited value instead of its native address. Use `CreateDataProperty`. Signed-off-by: Trivikram Kamat <[email protected]> Assisted-by: claude:opus-5.5 PR-URL: #67170 Fixes: #67169 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Paolo Insogna <[email protected]>
`CreateFunction` assigned `pointer` with `Object::Set`, which walks `Function.prototype`. A non-writable inherited `pointer` turned the store into a silent no-op, so the function reported the inherited value instead of its native address. Use `CreateDataProperty`. Signed-off-by: Trivikram Kamat <[email protected]> Assisted-by: claude:opus-5.5 PR-URL: #67170 Fixes: #67169 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Paolo Insogna <[email protected]>
`CreateFunction` assigned `pointer` with `Object::Set`, which walks `Function.prototype`. A non-writable inherited `pointer` turned the store into a silent no-op, so the function reported the inherited value instead of its native address. Use `CreateDataProperty`. Signed-off-by: Trivikram Kamat <[email protected]> Assisted-by: claude:opus-5.5 PR-URL: nodejs#67170 Fixes: nodejs#67169 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Paolo Insogna <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
ffi: function .pointer is lost when Function.prototype.pointer is non-writable
There was an error while loading. Please reload this page.