8000
Skip to content

Fix "TypeError: Cannot read property 'emit' of undefined"#132

Open
joepie91 wants to merge 2 commits intoglslify:masterfrom
joepie91:patch-1
Open

Fix "TypeError: Cannot read property 'emit' of undefined"#132
joepie91 wants to merge 2 commits intoglslify:masterfrom
joepie91:patch-1

Conversation

@joepie91
Copy link
Copy Markdown
@joepie91 joepie91 commented May 9, 2020

The var d shadows the duplex stream in a parent scope, which when a path in GLSL fails to resolve, causes the code to call .emit on the wrong object. This renames the shadowing object so that error emits are correctly routed to the duplex stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0