Skip to content

errors with proto #69

Description

@danielb2

TypeError: Cannot convert undefined or null to object

var p = require('purdy'); // eslint-disable-line
p(process.foo, { proto: true });

TypeError: Invalid property descriptor.

var p = require('purdy'); // eslint-disable-line
p(process.stdin, { proto: true });

TypeError: Illegal invocation

const libxmljs = require('libxmljs');

const thing = libxmljs.parseXmlString('<symbol xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" class="poi-icon" id="poi-icon--4" typeId="-4"> \
   <g fill="none" fill-rule="evenodd"> \
     <circle cx="30" cy="30" r="30" fill="#7B8A9C" fill-rule="nonzero"/> \
   </g> \
 </symbol>', { noblanks: true });


var p = require('purdy'); // eslint-disable-line
p(thing.root().clone(), { proto: true });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions