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
Can and should immutable be expected to procedurally copy complex objects?
Should immutable be trying to copy objects at all in the case where they're being handed to a scope?
1 is tough. Currently we have thing => new thing.constructor as the copy mechanism. I don't think it's in Patchinko's remit to special case DOM objects, where there's no unopinionated way to copy a node (should cloneNode be passed true?).
2 is a design mistake in Patchinko, I think. That merits its own issue - #23.
Following code causes
Illegal Constructor
error:Run above code in flems
The text was updated successfully, but these errors were encountered: