Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work with Object.create #23

Closed
alexander-akait opened this issue Aug 25, 2020 · 1 comment
Closed

doesn't work with Object.create #23

alexander-akait opened this issue Aug 25, 2020 · 1 comment

Comments

@alexander-akait
Copy link

Reproducible repo:

// Works with `clone-deep` too
const clone = require('clone');
const { klona } = require('klona/full');

const obj = Object.create({
  method() {
    return 'foo';
  },
});

console.log(clone(obj).method());
console.log(klona(obj).method());
@lukeed lukeed closed this as completed in 3035139 Sep 15, 2020
@lukeed
Copy link
Owner

lukeed commented Sep 15, 2020

Sorry for the delay on this – thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants