grantcarthew / node-perj

A fast, flexible JSON logger.

Home Page:https://github.com/grantcarthew/node-perj/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change this.parent to a getter

grantcarthew opened this issue · comments

Describe the bug

The wiki defines child.parent as read only whilst at this time the property is not.

Additional context

Three changes needed:

  • Change this.parent to be a Symbol for internal storage.
  • Add a getter for this.parent
  • Set this[parent symbol] to null on the root logger object.