{"action":"created","issue":{"url":"https://api.github.com/repos/stevelacy/gulp-stylus/issues/101","labels_url":"https://api.github.com/repos/stevelacy/gulp-stylus/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/stevelacy/gulp-stylus/issues/101/comments","events_url":"https://api.github.com/repos/stevelacy/gulp-stylus/issues/101/events","html_url":"https://github.com/stevelacy/gulp-stylus/issues/101","id":51908802,"number":101,"title":"Deep cloning options is breaking stylus node objects","user":{"login":"Bockit","id":167362,"avatar_url":"https://avatars.githubusercontent.com/u/167362?v=3","gravatar_id":"","url":"https://api.github.com/users/Bockit","html_url":"https://github.com/Bockit","followers_url":"https://api.github.com/users/Bockit/followers","following_url":"https://api.github.com/users/Bockit/following{/other_user}","gists_url":"https://api.github.com/users/Bockit/gists{/gist_id}","starred_url":"https://api.github.com/users/Bockit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bockit/subscriptions","organizations_url":"https://api.github.com/users/Bockit/orgs","repos_url":"https://api.github.com/users/Bockit/repos","events_url":"https://api.github.com/users/Bockit/events{/privacy}","received_events_url":"https://api.github.com/users/Bockit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-14T04:20:21Z","updated_at":"2015-01-04T23:42:38Z","closed_at":null,"body":"In https://github.com/stevelacy/gulp-stylus/commit/15fb57a81bfcbf927a84c14e364a2889128997d8 a change was made to deep clone the options object. This breaks any stylus nodes you've passed in, e.g., \r\n\r\n```javascript\r\n.pipe(stylus({ define: {\r\n    'text-colour': new stylusRaw.nodes.RGBA(255, 0, 0, 1)\r\n}}))\r\n```\r\n\r\nDeep cloning turns the stylus RGBA node into just an object with properties. Because nodes have a reference to themselves, when stylus tries to coerce the object into a stylus object node it ends up recursing on the self-reference until you get a stack overflow."},"comment":{"url":"https://api.github.com/repos/stevelacy/gulp-stylus/issues/comments/68655198","html_url":"https://github.com/stevelacy/gulp-stylus/issues/101#issuecomment-68655198","issue_url":"https://api.github.com/repos/stevelacy/gulp-stylus/issues/101","id":68655198,"user":{"login":"Bockit","id":167362,"avatar_url":"https://avatars.githubusercontent.com/u/167362?v=3","gravatar_id":"","url":"https://api.github.com/users/Bockit","html_url":"https://github.com/Bockit","followers_url":"https://api.github.com/users/Bockit/followers","following_url":"https://api.github.com/users/Bockit/following{/other_user}","gists_url":"https://api.github.com/users/Bockit/gists{/gist_id}","starred_url":"https://api.github.com/users/Bockit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bockit/subscriptions","organizations_url":"https://api.github.com/users/Bockit/orgs","repos_url":"https://api.github.com/users/Bockit/repos","events_url":"https://api.github.com/users/Bockit/events{/privacy}","received_events_url":"https://api.github.com/users/Bockit/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T23:42:38Z","updated_at":"2015-01-04T23:42:38Z","body":"Is it possible for this change to be published?"}}