Skip to main content

singleton_class

Function singleton_class 

Source
pub fn singleton_class(ns: &str) -> Option<&'static str>
Expand description

A builtin SINGLETON kept as a namespace (performance, crypto, crypto.subtle) and the class it is the one instance of, under the key that class’s Builtin is spelled with. Every view of the instance — its prototype, instanceof, brand, constructor, own keys, hasOwnProperty, and its methods (read off the class prototype) — consults this one table.