Commit fe094b98 authored by Raine Makelainen's avatar Raine Makelainen

Fix performance warnings by using Object.create instead of __proto__

Previously we got:
"mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create
the object with the correct initial [[Prototype]] value using Object.create"

See also:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto
parent 0c948d0a
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment