# 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. Playground: https://immutable-js.com/play/#Y2xhc3MgTXlSZWNvcmQgZXh0ZW5kcyBSZWNvcmQoewogIC8vIGE6IDEKfSkge30KCnZhciBteVJlY29yZCA9IG5ldyBNeVJlY29yZCgpOwpteVJlY29yZC5tZXJnZSh7IGE6IDQgfSk7  # Workaround Do not use the empty object as the parameter of `Record`. ```diff - class MyRecord extends Record({}) {} + class MyRecord extends Record({ a: 1 }) {} ```