Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'AudioWorkletProcessor.port' is undefined #8

Closed
JohnWeisz opened this issue Aug 26, 2018 · 1 comment
Closed

'AudioWorkletProcessor.port' is undefined #8

JohnWeisz opened this issue Aug 26, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@JohnWeisz
Copy link
Contributor

JohnWeisz commented Aug 26, 2018

For example, doing this in:

class MyWorkletProcessor extends AudioWorkletProcessor
{
    constructor()
    {
        super();
        this.port.onmessage = (e) => ...
    }
}

Will result in an error, because this.port is undefined.

(I hate to be picky, but did anyone actually test this project? Really doesn't seem so, virtually everything is broken in it...)

@developit
Copy link
Collaborator

The port is assigned, it's just done after construction. I'll move it into the constructor so that your example works.

@developit developit added the bug Something isn't working label Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants