archives

« Bugzilla Issues Index

#3260 — Update: Object Instantiation Redo


#8 option was combination of:


- Stay the course with draft ES6 (#2)
- Pass args to @@create. (#8)
- Constructor [[create]] slot
- own not inherited
- not exposed to user code


Example from Dave Herman:

Array[[Create]] = function (...args) {
return %ArrayCreate%(this.prototype, ...args);
};


Example from Brian Terlson:

https://gist.github.com/bterlson/1fe0b0dc0ef3e71ff6e3


fixed in rev28 editor's draft


fixed in rev28