Question about 1v86's Object.setPrototype(...) implementation and reference/documentation:
Espruino reference of Object.setPrototype(...) explicitly says in Description 'Creates a new object...'. Does it really? ...or does it only change the object's reference to its prototype and with that 'replace' the behavioral parts that are not defined on the object itself?
...almost forgot: @Gordon, thanks for the great enhancements... regarding coding (Promise) and robust operation (watchdog) ...next to the many other very useful things.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Question about 1v86's
Object.setPrototype(...)
implementation and reference/documentation:Espruino reference of Object.setPrototype(...) explicitly says in Description 'Creates a new object...'. Does it really? ...or does it only change the object's reference to its prototype and with that 'replace' the behavioral parts that are not defined on the object itself?
...almost forgot: @Gordon, thanks for the great enhancements... regarding coding (Promise) and robust operation (watchdog) ...next to the many other very useful things.