Skip to content
Myr

Added some missing traps

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Michel Weststrate · committed by Michel Weststrate · parent 8d49261 · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:immer.js+7 added
70 unmodified lines
71 return Reflect.getOwnPropertyDescriptor(72 getCurrentSource(target),73 prop74 )75 },76 defineProperty(target, property, descriptor) {77 Object.defineProperty(getOrCreateCopy(target), property, descriptor)78 return true79 },80 setPrototypeOf() {81 throw new Error("Don't even try this...")82 }83 }8485 // creates a copy for a base object if there ain't one
156 unmodified lines