Created
November 28, 2020 14:45
-
-
Save jdeniau/c0b8e7b9b5c5b93416f700eca4e690d1 to your computer and use it in GitHub Desktop.
Fixes bu don't fixes https://github.com/immutable-js-oss/immutable-js/issues/141
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function makeRecord(likeRecord, values, ownerID) { | |
const record = Object.create(Object.getPrototypeOf(likeRecord)); | |
+ | |
+ const properties = Object.getOwnPropertyDescriptors(likeRecord); | |
+ Object.defineProperties(record, properties); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment