WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

callOnEachEvent throws if eventTypes is null #116

@chmac

Description

@chmac

I read the code here:

async function callOnEachEvent(callback, eventTypes = null) {

I assume that the second parameter was optional, but omitting it produced a firehose of errors. Adding it back as an empty array stopped the errors. I'd be happy to submit a PR switching null to [] if that's helpful. Seems like null is not a valid value.

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