Object.getOwnPropertyDescriptors() has been implemented in V8 since February 2016, and enabled by the "Experimental Javascript Features" flag in Chrome since March. The feature has been ratified and is in the specification at https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors.
Performance-wise, I believe we outperform user-space implementations of this function in the common cases by a factor of 2 (measured quickly/naively at https://github.com/caitp/getOwnPropertyDescriptors-bench), possibly slightly slower for more exotic uses (but this has not been tested). The technical debt introduced by this feature is fairly limited, taking up a total of 36 lines of straightforward C++ code. There is no chromestatus entry, but one will be created if asked for. It's been implemented for several months without one, and it seems like the feature is being found without an entry. -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.