rewire icon indicating copy to clipboard operation
rewire copied to clipboard

Rewire when exports have been frozen

Open 9point6 opened this issue 10 years ago • 0 comments

It's not currently possible to rewire a file where the exports have been wrapped with Object.freeze() as the __get__ & __set__ methods cannot be added.

Would it be possible for rewire to clone the exported object and add its methods, rather than mutating the exported object itself?

9point6 avatar Jan 18 '16 13:01 9point6