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

CreateListFromArrayLike on non-object error #10

Closed
mrvini opened this issue Oct 6, 2016 · 2 comments
Closed

CreateListFromArrayLike on non-object error #10

mrvini opened this issue Oct 6, 2016 · 2 comments
Labels

Comments

@mrvini
Copy link

mrvini commented Oct 6, 2016

while broadcasting to all events on *, this error came up, also similar to #7

/opt/connector/node_modules/event-pubsub/es6.js:79
            handler.apply(this, type, args);
                    ^

TypeError: CreateListFromArrayLike called on non-object
    at Client.emit$ (/opt/connector/node_modules/event-pubsub/es6.js:79:21)
    at Client.emit (/opt/connector/node_modules/event-pubsub/es6.js:58:25)
    at Socket.connectionMade (/opt/connector/node_modules/node-ipc/dao/client.js:140:20)
    at emitNone (events.js:91:20)
    at Socket.emit (events.js:185:7)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1067:10)

this could be fixed with

in es6.js replace line 78

handler.apply(this, type, args);

with

args.unshift(type)
handler.apply(this, args);
@mrvini mrvini changed the title Error in emit * CreateListFromArrayLike on non-object error Oct 6, 2016
@RIAEvangelist
Copy link
Owner

args.unshift(type) is too slow. switching to .call

@RIAEvangelist
Copy link
Owner

btw, thats what the ES5 module does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants