5 ms·
Changing the prototype of objects after they've been initialized causes deopts for JIT compiled code. Its convenient, but you probably can't use this pattern in
by Jarred 6y ago
Changing the prototype of objects after they've been initialized causes deopts for JIT compiled code. Its convenient, but you probably can't use this pattern in performance-sensitive code.