Skip to content

Loses _this scope while promisifying #39

@utamir

Description

@utamir

If using via util.promisify, connectToAP loses _this scope
let conn = await util.promisify(wifi.connectToAP)({ssid:'MySSID', password:'MyPassword'});
fails with

_this.getIfaceState is not a function
since _this is global scope when being executed via promise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions