Closed
Bug
Copy link
Description
Root Cause
The code https://github.com/immutable-js/immutable-js/blob/main/src/methods/merge.js#L27-L33 calls constructor
without new
. If the constructor
is a class, it will throw this error.
Workaround
Do not use the empty object as the parameter of Record
.
- class MyRecord extends Record({}) {}
+ class MyRecord extends Record({ a: 1 }) {}
Metadata
Metadata
Assignees
Labels
No labels