Skip to main content

namespace_constants

Function namespace_constants 

Source
pub fn namespace_constants(ns: &str) -> &'static [(&'static str, f64)]
Expand description

The numeric constants a core namespace owns, in the order node reports them under getOwnPropertyNames. ONE table rather than a value match plus a name list: the enumeration and the read have to agree, and they did not — every one of these read correctly while Object.getOwnPropertyNames(Math) omitted all eight of Math’s, so a member that plainly exists was invisible to any reflective copy of the namespace.

Each is { writable: false, enumerable: false, configurable: false }, which is what separates them from the methods alongside them.