You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"use strict";
var clone = require("clone");
function Foo() {}
Foo.prototype.prop = 1;
var a = new Foo;
a.prop = 2;
var b = clone(a);
console.log(a, b);
Hello,
please tell if this is a bug. When parent object has an own and an inherited property with the same name, then the cloned one will not have the own one copied. This works correct if we have only an own or only an inherited one on the parent.
The text was updated successfully, but these errors were encountered:
Hello,
please tell if this is a bug. When parent object has an own and an inherited property with the same name, then the cloned one will not have the own one copied. This works correct if we have only an own or only an inherited one on the parent.
The text was updated successfully, but these errors were encountered: