Skip to content

new internalNextTick cannot be wrapped by electron #19104

Closed
@xaviergonz

Description

@xaviergonz

Due to the change from using process.nextTick to const { nextTick } = require('internal/process/next_tick'); electron cannot wrap that call anymore in order to use its internal process.activateUvLoop(), which is used on renderer processes to process the event queue (as seen in https://github.com/electron/electron/blob/7ef69a5af595c9c0eef27bdf9446103776917aec/lib/common/init.js)

This is related to issue electron/electron#12108

If this internal "nextTick" were to be exported in process as process._internalNextTick and any calls that used this nextTick were changed to use process._internalNextTick instead (there are only like 4 or 5 and only used for network/http stuff so far) then electron would be able once more to wrap these calls and get those working again.

I'm open to create a pull request, but only if it is likely to get accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions