node-raphael icon indicating copy to clipboard operation
node-raphael copied to clipboard

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

Open cdauth opened this issue 10 years ago • 0 comments

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)

cdauth avatar Nov 26 '15 13:11 cdauth