-
Hello @Tao-VanJS ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @lichwala, Thanks for your interest in VanJS. I don't think either {
a: {
writable: true,
configurable: true,
value: 1,
},
b: {
writable: true,
configurable: true,
value: 2,
},
} Thus |
Beta Was this translation helpful? Give feedback.
-
Ahhh OK, now I fully understand this. Thank you for your detailed explanation! |
Beta Was this translation helpful? Give feedback.
Hi @lichwala,
Thanks for your interest in VanJS.
I don't think either
Object.create(...)
or{__proto__: ..., ...}
has any security issues. The problem in the1.2.2
release is that the code is buggy. ForObject.create
, the 2nd parameter is apropertiesObject
, not the object itself, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create#parameters. For instance, if you want to initiate{a: 1, b: 2}
withObject.create
, you need to pass in:Thus
1.2.2
release was my fault. I should have run the tests to catc…