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

Cannot set property length of [object Object] which has only a getter #8

Open
cdauth opened this issue Nov 26, 2015 · 0 comments
Open

Comments

@cdauth
Copy link

cdauth commented Nov 26, 2015

When running the example raphael.generate() in any other way, I get the following exception:

/tmp/node-raphael/node_modules/jsdom/lib/jsdom/level1/core.js:553
      Array.prototype.splice.call(this._childNodes, refChildIndex, 0, newChild);
                             ^

TypeError: Cannot set property length of [object Object] which has only a getter
    at core.Node.insertBefore (/tmp/node-raphael/node_modules/jsdom/lib/jsdom/level1/core.js:553:30)
    at null.<anonymous> (/tmp/node-raphael/node_modules/jsdom/lib/jsdom/level2/events.js:332:20)
    at proto.(anonymous function) [as insertBefore] (/tmp/node-raphael/node_modules/jsdom/lib/jsdom/utils.js:23:26)
    at core.Node.appendChild (/tmp/node-raphael/node_modules/jsdom/lib/jsdom/level1/core.js:671:17)
    at Function.R._engine.create (/tmp/node-raphael/node_modules/raphael/raphael.js:7093:27)
    at R (/tmp/node-raphael/node_modules/raphael/raphael.js:464:47)
    at Object.generate (/tmp/node-raphael/index.js:13:42)
    at Server.<anonymous> (/tmp/node-raphael/example/server.js:7:23)
    at emitTwo (events.js:87:13)
    at Server.emit (events.js:172:7)
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

No branches or pull requests

1 participant