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

Can not console.log #3

Open
AlicanC opened this issue Mar 20, 2013 · 0 comments
Open

Can not console.log #3

AlicanC opened this issue Mar 20, 2013 · 0 comments

Comments

@AlicanC
Copy link

AlicanC commented Mar 20, 2013

var win32ole = require('win32ole');
var iTunes = win32ole.client.Dispatch('iTunes.Application');
console.log(iTunes);

Causes a Type Error making debugging a lot harder.

TypeError: Cannot convert object to primitive value
    at String (unknown source)
    at formatValue (util.js:197:12)
    at inspect (util.js:125:10)
    at Object.exports.format (util.js:27:20)
    at Object.exports.log (console.js:25:36)
    at repl:1:10
    at REPLServer.self.eval (repl.js:109:21)
    at Interface.<anonymous> (repl.js:248:12)
    at Interface.EventEmitter.emit (events.js:96:17)
    at Interface._onLine (readline.js:200:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant