Closed michaelficarra closed 8 years ago
Currently, with configurable: false
, duplicate properties will error at runtime unless the values are the ===
.
configurability
is still a topic of debate, but I believe this issue was opened to address an issue with the original design where we could queue a set of instructions to be executed at instantiation time -- where the set was keyed by the property name (i.e. eliminating the execution of f()
from ever happening).
This is no longer the case since we no longer store the initialization instructions by the property name
This needs to not error defining
b
on instances ofA
twice, and needs to evaluatef()
andg()
each timeA
is constructed. The value of fresh instances ofA
should be the return value ofg()
.