src: do not rely on the internal field being default to undefined by joyeecheung · Pull Request #49413 · nodejs/node
It's an undocumented V8 behavior that is subject to change. Instead just check if the internal field is set to a promise. There is also no need to check IsEmpty() since the object is guaranteed to be constructed by the FileHandle constructor with enough internal fields.
added
c++
labels
Aug 30, 2023This was referenced
Sep 3, 2023
lpinca
added
commit-queue
and removed commit-queue-failed
An error occurred while landing this pull request using GitHub Actions.labels
Sep 7, 2023This was referenced
Sep 28, 2023This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters