When an object is created using Object.create(someObject) method the properties of the original method is not derived by the created method. How to make it derive the existing properties.?
> a = {}
> a.p1 = '8'; // add a property to object
> b = Object.create(a);
> b // b does not inherit the property p1.
{}
To reproduce the bug use the node console as shown below:
$ node
> a = {}
{}
> a.p1 = 2;
2
> b = Object.create(a);
{}
> b
{}
> a
{ p1: 2 }
>