Skip to main content

namespace_statics_enumerable

Function namespace_statics_enumerable 

Source
pub fn namespace_statics_enumerable(ns: &str) -> bool
Expand description

The enumerable own keys of the builtin namespace ns — what for (key in ns) and Object.keys(ns) yield. These are the members node-js ACTUALLY implements, not Node’s full export list, so a package that copies a namespace key-by-key (safer-buffer clones buffer and Buffer) ends up with exactly the working set rather than an empty object. Whether a stdlib namespace’s statics are ENUMERABLE own properties. A core module’s exports and a node or WebIDL class’s statics (Buffer.from, URL.canParse) are; an ECMAScript intrinsic constructor’s are not (Iterator.from, Iterator.concat).