mirror of
https://github.com/penpot/penpot.git
synced 2026-03-20 09:23:47 +00:00
When the plugin sandbox calls harden() (SES lockdown) on any proxy object returned from the penpot.* API, SES traverses the prototype chain up to Proxy.prototype and freezes the CLJS Proxy constructor function. Transit's typeTag helper later fails with "object is not extensible" when trying to set its cache property on that frozen constructor. Fix by deleting the constructor data property from Proxy.prototype so that harden never traverses to the CLJS Proxy constructor function. Signed-off-by: Andrey Antukh <niwi@niwi.nz>