// @generated by tools/gen_realm.cjs from node v22.22.1 and @markdoc/markdoc 0.5.11. Do not edit.
//
// The built-in objects a value can reach through string-keyed property reads (see
// tools/gen_realm.cjs and the realm module's documentation).
use super::{Builtin, Data, Getter, Legacy, ObjectData, Prop, Slot, Wrapped};
use super::{CALLABLE, CLASS, CONFIGURABLE, CONSTRUCTOR, ENUMERABLE, FRAMELESS, IS_ARRAY, WRITABLE};
/// The node whose realm the table describes (`process.version`).
pub const NODE_VERSION: &str = "v22.22.1";
/// The `@markdoc/markdoc` whose classes the table holds.
pub const MARKDOC_VERSION: &str = "0.5.11";
impl Builtin {
/// `Object`.
pub const OBJECT: Builtin = Builtin(0);
/// `Object.prototype`.
pub const OBJECT_PROTOTYPE: Builtin = Builtin(1);
/// `Function`.
pub const FUNCTION: Builtin = Builtin(2);
/// `Function.prototype`.
pub const FUNCTION_PROTOTYPE: Builtin = Builtin(3);
/// `Array`.
pub const ARRAY: Builtin = Builtin(4);
/// `Array.prototype`.
pub const ARRAY_PROTOTYPE: Builtin = Builtin(5);
/// `String`.
pub const STRING: Builtin = Builtin(6);
/// `String.prototype`.
pub const STRING_PROTOTYPE: Builtin = Builtin(7);
/// `Number`.
pub const NUMBER: Builtin = Builtin(8);
/// `Number.prototype`.
pub const NUMBER_PROTOTYPE: Builtin = Builtin(9);
/// `Boolean`.
pub const BOOLEAN: Builtin = Builtin(10);
/// `Boolean.prototype`.
pub const BOOLEAN_PROTOTYPE: Builtin = Builtin(11);
/// `RegExp`.
pub const REGEXP: Builtin = Builtin(12);
/// `RegExp.prototype`.
pub const REGEXP_PROTOTYPE: Builtin = Builtin(13);
/// `Tag`.
pub const TAG: Builtin = Builtin(14);
/// `Tag.prototype`.
pub const TAG_PROTOTYPE: Builtin = Builtin(15);
/// `Class`.
pub const CLASS: Builtin = Builtin(16);
/// `Class.prototype`.
pub const CLASS_PROTOTYPE: Builtin = Builtin(17);
/// `Id`.
pub const ID: Builtin = Builtin(18);
/// `Id.prototype`.
pub const ID_PROTOTYPE: Builtin = Builtin(19);
/// `ConditionalAttributeType`.
pub const CONDITIONAL_ATTRIBUTE_TYPE: Builtin = Builtin(20);
/// `ConditionalAttributeType.prototype`.
pub const CONDITIONAL_ATTRIBUTE_TYPE_PROTOTYPE: Builtin = Builtin(21);
/// `PartialFile`.
pub const PARTIAL_FILE: Builtin = Builtin(22);
/// `PartialFile.prototype`.
pub const PARTIAL_FILE_PROTOTYPE: Builtin = Builtin(23);
/// `Node`.
pub const NODE: Builtin = Builtin(24);
/// `Node.prototype`.
pub const NODE_PROTOTYPE: Builtin = Builtin(25);
/// `Variable`.
pub const VARIABLE: Builtin = Builtin(26);
/// `Variable.prototype`.
pub const VARIABLE_PROTOTYPE: Builtin = Builtin(27);
/// `AstFunction`.
pub const AST_FUNCTION: Builtin = Builtin(28);
/// `AstFunction.prototype`.
pub const AST_FUNCTION_PROTOTYPE: Builtin = Builtin(29);
/// `Object.assign`.
pub const OBJECT_ASSIGN: Builtin = Builtin(30);
/// `Object.getOwnPropertyDescriptor`.
pub const OBJECT_GET_OWN_PROPERTY_DESCRIPTOR: Builtin = Builtin(31);
/// `Object.getOwnPropertyDescriptors`.
pub const OBJECT_GET_OWN_PROPERTY_DESCRIPTORS: Builtin = Builtin(32);
/// `Object.getOwnPropertyNames`.
pub const OBJECT_GET_OWN_PROPERTY_NAMES: Builtin = Builtin(33);
/// `Object.getOwnPropertySymbols`.
pub const OBJECT_GET_OWN_PROPERTY_SYMBOLS: Builtin = Builtin(34);
/// `Object.hasOwn`.
pub const OBJECT_HAS_OWN: Builtin = Builtin(35);
/// `Object.is`.
pub const OBJECT_IS: Builtin = Builtin(36);
/// `Object.preventExtensions`.
pub const OBJECT_PREVENT_EXTENSIONS: Builtin = Builtin(37);
/// `Object.seal`.
pub const OBJECT_SEAL: Builtin = Builtin(38);
/// `Object.create`.
pub const OBJECT_CREATE: Builtin = Builtin(39);
/// `Object.defineProperties`.
pub const OBJECT_DEFINE_PROPERTIES: Builtin = Builtin(40);
/// `Object.defineProperty`.
pub const OBJECT_DEFINE_PROPERTY: Builtin = Builtin(41);
/// `Object.freeze`.
pub const OBJECT_FREEZE: Builtin = Builtin(42);
/// `Object.getPrototypeOf`.
pub const OBJECT_GET_PROTOTYPE_OF: Builtin = Builtin(43);
/// `Object.setPrototypeOf`.
pub const OBJECT_SET_PROTOTYPE_OF: Builtin = Builtin(44);
/// `Object.isExtensible`.
pub const OBJECT_IS_EXTENSIBLE: Builtin = Builtin(45);
/// `Object.isFrozen`.
pub const OBJECT_IS_FROZEN: Builtin = Builtin(46);
/// `Object.isSealed`.
pub const OBJECT_IS_SEALED: Builtin = Builtin(47);
/// `Object.keys`.
pub const OBJECT_KEYS: Builtin = Builtin(48);
/// `Object.entries`.
pub const OBJECT_ENTRIES: Builtin = Builtin(49);
/// `Object.fromEntries`.
pub const OBJECT_FROM_ENTRIES: Builtin = Builtin(50);
/// `Object.values`.
pub const OBJECT_VALUES: Builtin = Builtin(51);
/// `Object.groupBy`.
pub const OBJECT_GROUP_BY: Builtin = Builtin(52);
/// `Object.prototype.__defineGetter__`.
pub const OBJECT_PROTOTYPE_DEFINE_GETTER: Builtin = Builtin(53);
/// `Object.prototype.__defineSetter__`.
pub const OBJECT_PROTOTYPE_DEFINE_SETTER: Builtin = Builtin(54);
/// `Object.prototype.hasOwnProperty`.
pub const OBJECT_PROTOTYPE_HAS_OWN_PROPERTY: Builtin = Builtin(55);
/// `Object.prototype.__lookupGetter__`.
pub const OBJECT_PROTOTYPE_LOOKUP_GETTER: Builtin = Builtin(56);
/// `Object.prototype.__lookupSetter__`.
pub const OBJECT_PROTOTYPE_LOOKUP_SETTER: Builtin = Builtin(57);
/// `Object.prototype.isPrototypeOf`.
pub const OBJECT_PROTOTYPE_IS_PROTOTYPE_OF: Builtin = Builtin(58);
/// `Object.prototype.propertyIsEnumerable`.
pub const OBJECT_PROTOTYPE_PROPERTY_IS_ENUMERABLE: Builtin = Builtin(59);
/// `Object.prototype.toString`.
pub const OBJECT_PROTOTYPE_TO_STRING: Builtin = Builtin(60);
/// `Object.prototype.valueOf`.
pub const OBJECT_PROTOTYPE_VALUE_OF: Builtin = Builtin(61);
/// `Object.prototype.toLocaleString`.
pub const OBJECT_PROTOTYPE_TO_LOCALE_STRING: Builtin = Builtin(62);
/// `Function.prototype.apply`.
pub const FUNCTION_PROTOTYPE_APPLY: Builtin = Builtin(63);
/// `Function.prototype.bind`.
pub const FUNCTION_PROTOTYPE_BIND: Builtin = Builtin(64);
/// `Function.prototype.call`.
pub const FUNCTION_PROTOTYPE_CALL: Builtin = Builtin(65);
/// `Function.prototype.toString`.
pub const FUNCTION_PROTOTYPE_TO_STRING: Builtin = Builtin(66);
/// `Array.isArray`.
pub const ARRAY_IS_ARRAY: Builtin = Builtin(67);
/// `Array.from`.
pub const ARRAY_FROM: Builtin = Builtin(68);
/// `Array.of`.
pub const ARRAY_OF: Builtin = Builtin(69);
/// `Array.fromAsync`.
pub const ARRAY_FROM_ASYNC: Builtin = Builtin(70);
/// `Array.prototype.at`.
pub const ARRAY_PROTOTYPE_AT: Builtin = Builtin(71);
/// `Array.prototype.concat`.
pub const ARRAY_PROTOTYPE_CONCAT: Builtin = Builtin(72);
/// `Array.prototype.copyWithin`.
pub const ARRAY_PROTOTYPE_COPY_WITHIN: Builtin = Builtin(73);
/// `Array.prototype.fill`.
pub const ARRAY_PROTOTYPE_FILL: Builtin = Builtin(74);
/// `Array.prototype.find`.
pub const ARRAY_PROTOTYPE_FIND: Builtin = Builtin(75);
/// `Array.prototype.findIndex`.
pub const ARRAY_PROTOTYPE_FIND_INDEX: Builtin = Builtin(76);
/// `Array.prototype.findLast`.
pub const ARRAY_PROTOTYPE_FIND_LAST: Builtin = Builtin(77);
/// `Array.prototype.findLastIndex`.
pub const ARRAY_PROTOTYPE_FIND_LAST_INDEX: Builtin = Builtin(78);
/// `Array.prototype.lastIndexOf`.
pub const ARRAY_PROTOTYPE_LAST_INDEX_OF: Builtin = Builtin(79);
/// `Array.prototype.pop`.
pub const ARRAY_PROTOTYPE_POP: Builtin = Builtin(80);
/// `Array.prototype.push`.
pub const ARRAY_PROTOTYPE_PUSH: Builtin = Builtin(81);
/// `Array.prototype.reverse`.
pub const ARRAY_PROTOTYPE_REVERSE: Builtin = Builtin(82);
/// `Array.prototype.shift`.
pub const ARRAY_PROTOTYPE_SHIFT: Builtin = Builtin(83);
/// `Array.prototype.unshift`.
pub const ARRAY_PROTOTYPE_UNSHIFT: Builtin = Builtin(84);
/// `Array.prototype.slice`.
pub const ARRAY_PROTOTYPE_SLICE: Builtin = Builtin(85);
/// `Array.prototype.sort`.
pub const ARRAY_PROTOTYPE_SORT: Builtin = Builtin(86);
/// `Array.prototype.splice`.
pub const ARRAY_PROTOTYPE_SPLICE: Builtin = Builtin(87);
/// `Array.prototype.includes`.
pub const ARRAY_PROTOTYPE_INCLUDES: Builtin = Builtin(88);
/// `Array.prototype.indexOf`.
pub const ARRAY_PROTOTYPE_INDEX_OF: Builtin = Builtin(89);
/// `Array.prototype.join`.
pub const ARRAY_PROTOTYPE_JOIN: Builtin = Builtin(90);
/// `Array.prototype.keys`.
pub const ARRAY_PROTOTYPE_KEYS: Builtin = Builtin(91);
/// `Array.prototype.entries`.
pub const ARRAY_PROTOTYPE_ENTRIES: Builtin = Builtin(92);
/// `Array.prototype.values`.
pub const ARRAY_PROTOTYPE_VALUES: Builtin = Builtin(93);
/// `Array.prototype.forEach`.
pub const ARRAY_PROTOTYPE_FOR_EACH: Builtin = Builtin(94);
/// `Array.prototype.filter`.
pub const ARRAY_PROTOTYPE_FILTER: Builtin = Builtin(95);
/// `Array.prototype.flat`.
pub const ARRAY_PROTOTYPE_FLAT: Builtin = Builtin(96);
/// `Array.prototype.flatMap`.
pub const ARRAY_PROTOTYPE_FLAT_MAP: Builtin = Builtin(97);
/// `Array.prototype.map`.
pub const ARRAY_PROTOTYPE_MAP: Builtin = Builtin(98);
/// `Array.prototype.every`.
pub const ARRAY_PROTOTYPE_EVERY: Builtin = Builtin(99);
/// `Array.prototype.some`.
pub const ARRAY_PROTOTYPE_SOME: Builtin = Builtin(100);
/// `Array.prototype.reduce`.
pub const ARRAY_PROTOTYPE_REDUCE: Builtin = Builtin(101);
/// `Array.prototype.reduceRight`.
pub const ARRAY_PROTOTYPE_REDUCE_RIGHT: Builtin = Builtin(102);
/// `Array.prototype.toReversed`.
pub const ARRAY_PROTOTYPE_TO_REVERSED: Builtin = Builtin(103);
/// `Array.prototype.toSorted`.
pub const ARRAY_PROTOTYPE_TO_SORTED: Builtin = Builtin(104);
/// `Array.prototype.toSpliced`.
pub const ARRAY_PROTOTYPE_TO_SPLICED: Builtin = Builtin(105);
/// `Array.prototype.with`.
pub const ARRAY_PROTOTYPE_WITH: Builtin = Builtin(106);
/// `Array.prototype.toLocaleString`.
pub const ARRAY_PROTOTYPE_TO_LOCALE_STRING: Builtin = Builtin(107);
/// `Array.prototype.toString`.
pub const ARRAY_PROTOTYPE_TO_STRING: Builtin = Builtin(108);
/// `String.fromCharCode`.
pub const STRING_FROM_CHAR_CODE: Builtin = Builtin(109);
/// `String.fromCodePoint`.
pub const STRING_FROM_CODE_POINT: Builtin = Builtin(110);
/// `String.raw`.
pub const STRING_RAW: Builtin = Builtin(111);
/// `String.prototype.anchor`.
pub const STRING_PROTOTYPE_ANCHOR: Builtin = Builtin(112);
/// `String.prototype.at`.
pub const STRING_PROTOTYPE_AT: Builtin = Builtin(113);
/// `String.prototype.big`.
pub const STRING_PROTOTYPE_BIG: Builtin = Builtin(114);
/// `String.prototype.blink`.
pub const STRING_PROTOTYPE_BLINK: Builtin = Builtin(115);
/// `String.prototype.bold`.
pub const STRING_PROTOTYPE_BOLD: Builtin = Builtin(116);
/// `String.prototype.charAt`.
pub const STRING_PROTOTYPE_CHAR_AT: Builtin = Builtin(117);
/// `String.prototype.charCodeAt`.
pub const STRING_PROTOTYPE_CHAR_CODE_AT: Builtin = Builtin(118);
/// `String.prototype.codePointAt`.
pub const STRING_PROTOTYPE_CODE_POINT_AT: Builtin = Builtin(119);
/// `String.prototype.concat`.
pub const STRING_PROTOTYPE_CONCAT: Builtin = Builtin(120);
/// `String.prototype.endsWith`.
pub const STRING_PROTOTYPE_ENDS_WITH: Builtin = Builtin(121);
/// `String.prototype.fontcolor`.
pub const STRING_PROTOTYPE_FONTCOLOR: Builtin = Builtin(122);
/// `String.prototype.fontsize`.
pub const STRING_PROTOTYPE_FONTSIZE: Builtin = Builtin(123);
/// `String.prototype.fixed`.
pub const STRING_PROTOTYPE_FIXED: Builtin = Builtin(124);
/// `String.prototype.includes`.
pub const STRING_PROTOTYPE_INCLUDES: Builtin = Builtin(125);
/// `String.prototype.indexOf`.
pub const STRING_PROTOTYPE_INDEX_OF: Builtin = Builtin(126);
/// `String.prototype.isWellFormed`.
pub const STRING_PROTOTYPE_IS_WELL_FORMED: Builtin = Builtin(127);
/// `String.prototype.italics`.
pub const STRING_PROTOTYPE_ITALICS: Builtin = Builtin(128);
/// `String.prototype.lastIndexOf`.
pub const STRING_PROTOTYPE_LAST_INDEX_OF: Builtin = Builtin(129);
/// `String.prototype.link`.
pub const STRING_PROTOTYPE_LINK: Builtin = Builtin(130);
/// `String.prototype.localeCompare`.
pub const STRING_PROTOTYPE_LOCALE_COMPARE: Builtin = Builtin(131);
/// `String.prototype.match`.
pub const STRING_PROTOTYPE_MATCH: Builtin = Builtin(132);
/// `String.prototype.matchAll`.
pub const STRING_PROTOTYPE_MATCH_ALL: Builtin = Builtin(133);
/// `String.prototype.normalize`.
pub const STRING_PROTOTYPE_NORMALIZE: Builtin = Builtin(134);
/// `String.prototype.padEnd`.
pub const STRING_PROTOTYPE_PAD_END: Builtin = Builtin(135);
/// `String.prototype.padStart`.
pub const STRING_PROTOTYPE_PAD_START: Builtin = Builtin(136);
/// `String.prototype.repeat`.
pub const STRING_PROTOTYPE_REPEAT: Builtin = Builtin(137);
/// `String.prototype.replace`.
pub const STRING_PROTOTYPE_REPLACE: Builtin = Builtin(138);
/// `String.prototype.replaceAll`.
pub const STRING_PROTOTYPE_REPLACE_ALL: Builtin = Builtin(139);
/// `String.prototype.search`.
pub const STRING_PROTOTYPE_SEARCH: Builtin = Builtin(140);
/// `String.prototype.slice`.
pub const STRING_PROTOTYPE_SLICE: Builtin = Builtin(141);
/// `String.prototype.small`.
pub const STRING_PROTOTYPE_SMALL: Builtin = Builtin(142);
/// `String.prototype.split`.
pub const STRING_PROTOTYPE_SPLIT: Builtin = Builtin(143);
/// `String.prototype.strike`.
pub const STRING_PROTOTYPE_STRIKE: Builtin = Builtin(144);
/// `String.prototype.sub`.
pub const STRING_PROTOTYPE_SUB: Builtin = Builtin(145);
/// `String.prototype.substr`.
pub const STRING_PROTOTYPE_SUBSTR: Builtin = Builtin(146);
/// `String.prototype.substring`.
pub const STRING_PROTOTYPE_SUBSTRING: Builtin = Builtin(147);
/// `String.prototype.sup`.
pub const STRING_PROTOTYPE_SUP: Builtin = Builtin(148);
/// `String.prototype.startsWith`.
pub const STRING_PROTOTYPE_STARTS_WITH: Builtin = Builtin(149);
/// `String.prototype.toString`.
pub const STRING_PROTOTYPE_TO_STRING: Builtin = Builtin(150);
/// `String.prototype.toWellFormed`.
pub const STRING_PROTOTYPE_TO_WELL_FORMED: Builtin = Builtin(151);
/// `String.prototype.trim`.
pub const STRING_PROTOTYPE_TRIM: Builtin = Builtin(152);
/// `String.prototype.trimStart`.
pub const STRING_PROTOTYPE_TRIM_START: Builtin = Builtin(153);
/// `String.prototype.trimEnd`.
pub const STRING_PROTOTYPE_TRIM_END: Builtin = Builtin(154);
/// `String.prototype.toLocaleLowerCase`.
pub const STRING_PROTOTYPE_TO_LOCALE_LOWER_CASE: Builtin = Builtin(155);
/// `String.prototype.toLocaleUpperCase`.
pub const STRING_PROTOTYPE_TO_LOCALE_UPPER_CASE: Builtin = Builtin(156);
/// `String.prototype.toLowerCase`.
pub const STRING_PROTOTYPE_TO_LOWER_CASE: Builtin = Builtin(157);
/// `String.prototype.toUpperCase`.
pub const STRING_PROTOTYPE_TO_UPPER_CASE: Builtin = Builtin(158);
/// `String.prototype.valueOf`.
pub const STRING_PROTOTYPE_VALUE_OF: Builtin = Builtin(159);
/// `Number.isFinite`.
pub const NUMBER_IS_FINITE: Builtin = Builtin(160);
/// `Number.isInteger`.
pub const NUMBER_IS_INTEGER: Builtin = Builtin(161);
/// `Number.isNaN`.
pub const NUMBER_IS_NAN: Builtin = Builtin(162);
/// `Number.isSafeInteger`.
pub const NUMBER_IS_SAFE_INTEGER: Builtin = Builtin(163);
/// `Number.parseFloat`.
pub const NUMBER_PARSE_FLOAT: Builtin = Builtin(164);
/// `Number.parseInt`.
pub const NUMBER_PARSE_INT: Builtin = Builtin(165);
/// `Number.prototype.toExponential`.
pub const NUMBER_PROTOTYPE_TO_EXPONENTIAL: Builtin = Builtin(166);
/// `Number.prototype.toFixed`.
pub const NUMBER_PROTOTYPE_TO_FIXED: Builtin = Builtin(167);
/// `Number.prototype.toPrecision`.
pub const NUMBER_PROTOTYPE_TO_PRECISION: Builtin = Builtin(168);
/// `Number.prototype.toString`.
pub const NUMBER_PROTOTYPE_TO_STRING: Builtin = Builtin(169);
/// `Number.prototype.valueOf`.
pub const NUMBER_PROTOTYPE_VALUE_OF: Builtin = Builtin(170);
/// `Number.prototype.toLocaleString`.
pub const NUMBER_PROTOTYPE_TO_LOCALE_STRING: Builtin = Builtin(171);
/// `Boolean.prototype.toString`.
pub const BOOLEAN_PROTOTYPE_TO_STRING: Builtin = Builtin(172);
/// `Boolean.prototype.valueOf`.
pub const BOOLEAN_PROTOTYPE_VALUE_OF: Builtin = Builtin(173);
/// `RegExp.prototype.exec`.
pub const REGEXP_PROTOTYPE_EXEC: Builtin = Builtin(174);
/// `RegExp.prototype.compile`.
pub const REGEXP_PROTOTYPE_COMPILE: Builtin = Builtin(175);
/// `RegExp.prototype.toString`.
pub const REGEXP_PROTOTYPE_TO_STRING: Builtin = Builtin(176);
/// `RegExp.prototype.test`.
pub const REGEXP_PROTOTYPE_TEST: Builtin = Builtin(177);
/// `Tag.isTag`.
pub const TAG_IS_TAG: Builtin = Builtin(178);
/// `Class.prototype.validate`.
pub const CLASS_PROTOTYPE_VALIDATE: Builtin = Builtin(179);
/// `Class.prototype.transform`.
pub const CLASS_PROTOTYPE_TRANSFORM: Builtin = Builtin(180);
/// `Id.prototype.validate`.
pub const ID_PROTOTYPE_VALIDATE: Builtin = Builtin(181);
/// `ConditionalAttributeType.prototype.validate`.
pub const CONDITIONAL_ATTRIBUTE_TYPE_PROTOTYPE_VALIDATE: Builtin = Builtin(182);
/// `PartialFile.prototype.validate`.
pub const PARTIAL_FILE_PROTOTYPE_VALIDATE: Builtin = Builtin(183);
/// `Node.prototype.walk`.
pub const NODE_PROTOTYPE_WALK: Builtin = Builtin(184);
/// `Node.prototype.push`.
pub const NODE_PROTOTYPE_PUSH: Builtin = Builtin(185);
/// `Node.prototype.resolve`.
pub const NODE_PROTOTYPE_RESOLVE: Builtin = Builtin(186);
/// `Node.prototype.findSchema`.
pub const NODE_PROTOTYPE_FIND_SCHEMA: Builtin = Builtin(187);
/// `Node.prototype.transformAttributes`.
pub const NODE_PROTOTYPE_TRANSFORM_ATTRIBUTES: Builtin = Builtin(188);
/// `Node.prototype.transformChildren`.
pub const NODE_PROTOTYPE_TRANSFORM_CHILDREN: Builtin = Builtin(189);
/// `Node.prototype.transform`.
pub const NODE_PROTOTYPE_TRANSFORM: Builtin = Builtin(190);
/// `Variable.prototype.resolve`.
pub const VARIABLE_PROTOTYPE_RESOLVE: Builtin = Builtin(191);
/// `AstFunction.prototype.resolve`.
pub const AST_FUNCTION_PROTOTYPE_RESOLVE: Builtin = Builtin(192);
/// `Node.prototype.walk.prototype`.
pub const NODE_PROTOTYPE_WALK_PROTOTYPE: Builtin = Builtin(193);
/// `GeneratorFunction.prototype`.
pub const GENERATOR_FUNCTION_PROTOTYPE: Builtin = Builtin(194);
/// `Generator.prototype`.
pub const GENERATOR_PROTOTYPE: Builtin = Builtin(195);
/// `GeneratorFunction`.
pub const GENERATOR_FUNCTION: Builtin = Builtin(196);
/// `Generator.prototype.next`.
pub const GENERATOR_PROTOTYPE_NEXT: Builtin = Builtin(197);
/// `Generator.prototype.return`.
pub const GENERATOR_PROTOTYPE_RETURN: Builtin = Builtin(198);
/// `Generator.prototype.throw`.
pub const GENERATOR_PROTOTYPE_THROW: Builtin = Builtin(199);
/// `Iterator.prototype`.
pub const ITERATOR_PROTOTYPE: Builtin = Builtin(200);
/// `Iterator`.
pub const ITERATOR: Builtin = Builtin(201);
/// `Iterator.prototype.reduce`.
pub const ITERATOR_PROTOTYPE_REDUCE: Builtin = Builtin(202);
/// `Iterator.prototype.toArray`.
pub const ITERATOR_PROTOTYPE_TO_ARRAY: Builtin = Builtin(203);
/// `Iterator.prototype.forEach`.
pub const ITERATOR_PROTOTYPE_FOR_EACH: Builtin = Builtin(204);
/// `Iterator.prototype.some`.
pub const ITERATOR_PROTOTYPE_SOME: Builtin = Builtin(205);
/// `Iterator.prototype.every`.
pub const ITERATOR_PROTOTYPE_EVERY: Builtin = Builtin(206);
/// `Iterator.prototype.find`.
pub const ITERATOR_PROTOTYPE_FIND: Builtin = Builtin(207);
/// `Iterator.prototype.map`.
pub const ITERATOR_PROTOTYPE_MAP: Builtin = Builtin(208);
/// `Iterator.prototype.filter`.
pub const ITERATOR_PROTOTYPE_FILTER: Builtin = Builtin(209);
/// `Iterator.prototype.take`.
pub const ITERATOR_PROTOTYPE_TAKE: Builtin = Builtin(210);
/// `Iterator.prototype.drop`.
pub const ITERATOR_PROTOTYPE_DROP: Builtin = Builtin(211);
/// `Iterator.prototype.flatMap`.
pub const ITERATOR_PROTOTYPE_FLAT_MAP: Builtin = Builtin(212);
/// `Iterator.from`.
pub const ITERATOR_FROM: Builtin = Builtin(213);
}
/// Every object of the table, by [`Builtin`] index.
pub(super) static OBJECTS: [ObjectData; 214] = [
ObjectData {
name: "Object",
flags: CALLABLE | CONSTRUCTOR,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function Object() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Object")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(1))), attrs: 0 },
Prop { key: "assign", slot: Slot::Data(Data::Object(Builtin(30))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "getOwnPropertyDescriptor", slot: Slot::Data(Data::Object(Builtin(31))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "getOwnPropertyDescriptors", slot: Slot::Data(Data::Object(Builtin(32))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "getOwnPropertyNames", slot: Slot::Data(Data::Object(Builtin(33))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "getOwnPropertySymbols", slot: Slot::Data(Data::Object(Builtin(34))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "hasOwn", slot: Slot::Data(Data::Object(Builtin(35))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "is", slot: Slot::Data(Data::Object(Builtin(36))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "preventExtensions", slot: Slot::Data(Data::Object(Builtin(37))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "seal", slot: Slot::Data(Data::Object(Builtin(38))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "create", slot: Slot::Data(Data::Object(Builtin(39))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "defineProperties", slot: Slot::Data(Data::Object(Builtin(40))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "defineProperty", slot: Slot::Data(Data::Object(Builtin(41))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "freeze", slot: Slot::Data(Data::Object(Builtin(42))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "getPrototypeOf", slot: Slot::Data(Data::Object(Builtin(43))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "setPrototypeOf", slot: Slot::Data(Data::Object(Builtin(44))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "isExtensible", slot: Slot::Data(Data::Object(Builtin(45))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "isFrozen", slot: Slot::Data(Data::Object(Builtin(46))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "isSealed", slot: Slot::Data(Data::Object(Builtin(47))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "keys", slot: Slot::Data(Data::Object(Builtin(48))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "entries", slot: Slot::Data(Data::Object(Builtin(49))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "fromEntries", slot: Slot::Data(Data::Object(Builtin(50))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "values", slot: Slot::Data(Data::Object(Builtin(51))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "groupBy", slot: Slot::Data(Data::Object(Builtin(52))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype",
flags: 0,
proto: None,
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(0))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "__defineGetter__", slot: Slot::Data(Data::Object(Builtin(53))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "__defineSetter__", slot: Slot::Data(Data::Object(Builtin(54))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "hasOwnProperty", slot: Slot::Data(Data::Object(Builtin(55))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "__lookupGetter__", slot: Slot::Data(Data::Object(Builtin(56))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "__lookupSetter__", slot: Slot::Data(Data::Object(Builtin(57))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "isPrototypeOf", slot: Slot::Data(Data::Object(Builtin(58))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "propertyIsEnumerable", slot: Slot::Data(Data::Object(Builtin(59))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toString", slot: Slot::Data(Data::Object(Builtin(60))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "valueOf", slot: Slot::Data(Data::Object(Builtin(61))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "__proto__", slot: Slot::Accessor { get: Some(Getter::Proto), set: true }, attrs: CONFIGURABLE },
Prop { key: "toLocaleString", slot: Slot::Data(Data::Object(Builtin(62))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Function",
flags: CALLABLE | CONSTRUCTOR,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function Function() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Function")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(3))), attrs: 0 },
],
},
ObjectData {
name: "Function.prototype",
flags: CALLABLE,
proto: Some(Builtin(1)),
class: "Function",
wrapped: None,
source: Some("function () { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("")), attrs: CONFIGURABLE },
Prop { key: "arguments", slot: Slot::Accessor { get: Some(Getter::Restricted), set: true }, attrs: CONFIGURABLE },
Prop { key: "caller", slot: Slot::Accessor { get: Some(Getter::Restricted), set: true }, attrs: CONFIGURABLE },
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(2))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "apply", slot: Slot::Data(Data::Object(Builtin(63))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "bind", slot: Slot::Data(Data::Object(Builtin(64))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "call", slot: Slot::Data(Data::Object(Builtin(65))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toString", slot: Slot::Data(Data::Object(Builtin(66))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Array",
flags: CALLABLE | CONSTRUCTOR,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function Array() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Array")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(5))), attrs: 0 },
Prop { key: "isArray", slot: Slot::Data(Data::Object(Builtin(67))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "from", slot: Slot::Data(Data::Object(Builtin(68))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "of", slot: Slot::Data(Data::Object(Builtin(69))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "fromAsync", slot: Slot::Data(Data::Object(Builtin(70))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype",
flags: IS_ARRAY,
proto: Some(Builtin(1)),
class: "Array",
wrapped: None,
source: None,
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: WRITABLE },
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(4))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "at", slot: Slot::Data(Data::Object(Builtin(71))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "concat", slot: Slot::Data(Data::Object(Builtin(72))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "copyWithin", slot: Slot::Data(Data::Object(Builtin(73))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "fill", slot: Slot::Data(Data::Object(Builtin(74))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "find", slot: Slot::Data(Data::Object(Builtin(75))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "findIndex", slot: Slot::Data(Data::Object(Builtin(76))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "findLast", slot: Slot::Data(Data::Object(Builtin(77))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "findLastIndex", slot: Slot::Data(Data::Object(Builtin(78))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "lastIndexOf", slot: Slot::Data(Data::Object(Builtin(79))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "pop", slot: Slot::Data(Data::Object(Builtin(80))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "push", slot: Slot::Data(Data::Object(Builtin(81))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "reverse", slot: Slot::Data(Data::Object(Builtin(82))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "shift", slot: Slot::Data(Data::Object(Builtin(83))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "unshift", slot: Slot::Data(Data::Object(Builtin(84))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "slice", slot: Slot::Data(Data::Object(Builtin(85))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "sort", slot: Slot::Data(Data::Object(Builtin(86))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "splice", slot: Slot::Data(Data::Object(Builtin(87))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "includes", slot: Slot::Data(Data::Object(Builtin(88))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "indexOf", slot: Slot::Data(Data::Object(Builtin(89))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "join", slot: Slot::Data(Data::Object(Builtin(90))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "keys", slot: Slot::Data(Data::Object(Builtin(91))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "entries", slot: Slot::Data(Data::Object(Builtin(92))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "values", slot: Slot::Data(Data::Object(Builtin(93))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "forEach", slot: Slot::Data(Data::Object(Builtin(94))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "filter", slot: Slot::Data(Data::Object(Builtin(95))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "flat", slot: Slot::Data(Data::Object(Builtin(96))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "flatMap", slot: Slot::Data(Data::Object(Builtin(97))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "map", slot: Slot::Data(Data::Object(Builtin(98))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "every", slot: Slot::Data(Data::Object(Builtin(99))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "some", slot: Slot::Data(Data::Object(Builtin(100))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "reduce", slot: Slot::Data(Data::Object(Builtin(101))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "reduceRight", slot: Slot::Data(Data::Object(Builtin(102))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toReversed", slot: Slot::Data(Data::Object(Builtin(103))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toSorted", slot: Slot::Data(Data::Object(Builtin(104))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toSpliced", slot: Slot::Data(Data::Object(Builtin(105))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "with", slot: Slot::Data(Data::Object(Builtin(106))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toLocaleString", slot: Slot::Data(Data::Object(Builtin(107))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toString", slot: Slot::Data(Data::Object(Builtin(108))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "String",
flags: CALLABLE | CONSTRUCTOR,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function String() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("String")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(7))), attrs: 0 },
Prop { key: "fromCharCode", slot: Slot::Data(Data::Object(Builtin(109))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "fromCodePoint", slot: Slot::Data(Data::Object(Builtin(110))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "raw", slot: Slot::Data(Data::Object(Builtin(111))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "String",
wrapped: Some(Wrapped::String("")),
source: None,
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: 0 },
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(6))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "anchor", slot: Slot::Data(Data::Object(Builtin(112))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "at", slot: Slot::Data(Data::Object(Builtin(113))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "big", slot: Slot::Data(Data::Object(Builtin(114))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "blink", slot: Slot::Data(Data::Object(Builtin(115))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "bold", slot: Slot::Data(Data::Object(Builtin(116))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "charAt", slot: Slot::Data(Data::Object(Builtin(117))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "charCodeAt", slot: Slot::Data(Data::Object(Builtin(118))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "codePointAt", slot: Slot::Data(Data::Object(Builtin(119))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "concat", slot: Slot::Data(Data::Object(Builtin(120))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "endsWith", slot: Slot::Data(Data::Object(Builtin(121))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "fontcolor", slot: Slot::Data(Data::Object(Builtin(122))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "fontsize", slot: Slot::Data(Data::Object(Builtin(123))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "fixed", slot: Slot::Data(Data::Object(Builtin(124))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "includes", slot: Slot::Data(Data::Object(Builtin(125))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "indexOf", slot: Slot::Data(Data::Object(Builtin(126))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "isWellFormed", slot: Slot::Data(Data::Object(Builtin(127))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "italics", slot: Slot::Data(Data::Object(Builtin(128))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "lastIndexOf", slot: Slot::Data(Data::Object(Builtin(129))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "link", slot: Slot::Data(Data::Object(Builtin(130))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "localeCompare", slot: Slot::Data(Data::Object(Builtin(131))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "match", slot: Slot::Data(Data::Object(Builtin(132))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "matchAll", slot: Slot::Data(Data::Object(Builtin(133))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "normalize", slot: Slot::Data(Data::Object(Builtin(134))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "padEnd", slot: Slot::Data(Data::Object(Builtin(135))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "padStart", slot: Slot::Data(Data::Object(Builtin(136))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "repeat", slot: Slot::Data(Data::Object(Builtin(137))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "replace", slot: Slot::Data(Data::Object(Builtin(138))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "replaceAll", slot: Slot::Data(Data::Object(Builtin(139))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "search", slot: Slot::Data(Data::Object(Builtin(140))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "slice", slot: Slot::Data(Data::Object(Builtin(141))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "small", slot: Slot::Data(Data::Object(Builtin(142))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "split", slot: Slot::Data(Data::Object(Builtin(143))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "strike", slot: Slot::Data(Data::Object(Builtin(144))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "sub", slot: Slot::Data(Data::Object(Builtin(145))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "substr", slot: Slot::Data(Data::Object(Builtin(146))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "substring", slot: Slot::Data(Data::Object(Builtin(147))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "sup", slot: Slot::Data(Data::Object(Builtin(148))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "startsWith", slot: Slot::Data(Data::Object(Builtin(149))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toString", slot: Slot::Data(Data::Object(Builtin(150))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toWellFormed", slot: Slot::Data(Data::Object(Builtin(151))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "trim", slot: Slot::Data(Data::Object(Builtin(152))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "trimStart", slot: Slot::Data(Data::Object(Builtin(153))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "trimLeft", slot: Slot::Data(Data::Object(Builtin(153))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "trimEnd", slot: Slot::Data(Data::Object(Builtin(154))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "trimRight", slot: Slot::Data(Data::Object(Builtin(154))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toLocaleLowerCase", slot: Slot::Data(Data::Object(Builtin(155))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toLocaleUpperCase", slot: Slot::Data(Data::Object(Builtin(156))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toLowerCase", slot: Slot::Data(Data::Object(Builtin(157))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toUpperCase", slot: Slot::Data(Data::Object(Builtin(158))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "valueOf", slot: Slot::Data(Data::Object(Builtin(159))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Number",
flags: CALLABLE | CONSTRUCTOR,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function Number() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Number")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(9))), attrs: 0 },
Prop { key: "isFinite", slot: Slot::Data(Data::Object(Builtin(160))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "isInteger", slot: Slot::Data(Data::Object(Builtin(161))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "isNaN", slot: Slot::Data(Data::Object(Builtin(162))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "isSafeInteger", slot: Slot::Data(Data::Object(Builtin(163))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "parseFloat", slot: Slot::Data(Data::Object(Builtin(164))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "parseInt", slot: Slot::Data(Data::Object(Builtin(165))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "MAX_VALUE", slot: Slot::Data(Data::Number(1.7976931348623157e+308)), attrs: 0 },
Prop { key: "MIN_VALUE", slot: Slot::Data(Data::Number(5.0e-324)), attrs: 0 },
Prop { key: "NaN", slot: Slot::Data(Data::Number(f64::NAN)), attrs: 0 },
Prop { key: "NEGATIVE_INFINITY", slot: Slot::Data(Data::Number(f64::NEG_INFINITY)), attrs: 0 },
Prop { key: "POSITIVE_INFINITY", slot: Slot::Data(Data::Number(f64::INFINITY)), attrs: 0 },
Prop { key: "MAX_SAFE_INTEGER", slot: Slot::Data(Data::Number(9007199254740991.0)), attrs: 0 },
Prop { key: "MIN_SAFE_INTEGER", slot: Slot::Data(Data::Number(-9007199254740991.0)), attrs: 0 },
Prop { key: "EPSILON", slot: Slot::Data(Data::Number(2.220446049250313e-16)), attrs: 0 },
],
},
ObjectData {
name: "Number.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Number",
wrapped: Some(Wrapped::Number(0.0)),
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(8))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toExponential", slot: Slot::Data(Data::Object(Builtin(166))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toFixed", slot: Slot::Data(Data::Object(Builtin(167))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toPrecision", slot: Slot::Data(Data::Object(Builtin(168))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toString", slot: Slot::Data(Data::Object(Builtin(169))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "valueOf", slot: Slot::Data(Data::Object(Builtin(170))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toLocaleString", slot: Slot::Data(Data::Object(Builtin(171))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Boolean",
flags: CALLABLE | CONSTRUCTOR,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function Boolean() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Boolean")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(11))), attrs: 0 },
],
},
ObjectData {
name: "Boolean.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Boolean",
wrapped: Some(Wrapped::Boolean(false)),
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(10))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toString", slot: Slot::Data(Data::Object(Builtin(172))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "valueOf", slot: Slot::Data(Data::Object(Builtin(173))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "RegExp",
flags: CALLABLE | CONSTRUCTOR,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function RegExp() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("RegExp")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(13))), attrs: 0 },
Prop { key: "input", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Input)), set: true }, attrs: CONFIGURABLE },
Prop { key: "$_", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Input)), set: true }, attrs: CONFIGURABLE },
Prop { key: "lastMatch", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::LastMatch)), set: true }, attrs: CONFIGURABLE },
Prop { key: "$&", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::LastMatch)), set: true }, attrs: CONFIGURABLE },
Prop { key: "lastParen", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::LastParen)), set: true }, attrs: CONFIGURABLE },
Prop { key: "$+", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::LastParen)), set: true }, attrs: CONFIGURABLE },
Prop { key: "leftContext", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::LeftContext)), set: true }, attrs: CONFIGURABLE },
Prop { key: "$`", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::LeftContext)), set: true }, attrs: CONFIGURABLE },
Prop { key: "rightContext", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::RightContext)), set: true }, attrs: CONFIGURABLE },
Prop { key: "$'", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::RightContext)), set: true }, attrs: CONFIGURABLE },
Prop { key: "$1", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Paren(1))), set: true }, attrs: CONFIGURABLE },
Prop { key: "$2", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Paren(2))), set: true }, attrs: CONFIGURABLE },
Prop { key: "$3", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Paren(3))), set: true }, attrs: CONFIGURABLE },
Prop { key: "$4", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Paren(4))), set: true }, attrs: CONFIGURABLE },
Prop { key: "$5", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Paren(5))), set: true }, attrs: CONFIGURABLE },
Prop { key: "$6", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Paren(6))), set: true }, attrs: CONFIGURABLE },
Prop { key: "$7", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Paren(7))), set: true }, attrs: CONFIGURABLE },
Prop { key: "$8", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Paren(8))), set: true }, attrs: CONFIGURABLE },
Prop { key: "$9", slot: Slot::Accessor { get: Some(Getter::RegExpLegacy(Legacy::Paren(9))), set: true }, attrs: CONFIGURABLE },
],
},
ObjectData {
name: "RegExp.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(12))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "exec", slot: Slot::Data(Data::Object(Builtin(174))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "dotAll", slot: Slot::Accessor { get: Some(Getter::RegExpFlag(b's')), set: false }, attrs: CONFIGURABLE },
Prop { key: "flags", slot: Slot::Accessor { get: Some(Getter::RegExpFlags), set: false }, attrs: CONFIGURABLE },
Prop { key: "global", slot: Slot::Accessor { get: Some(Getter::RegExpFlag(b'g')), set: false }, attrs: CONFIGURABLE },
Prop { key: "hasIndices", slot: Slot::Accessor { get: Some(Getter::RegExpFlag(b'd')), set: false }, attrs: CONFIGURABLE },
Prop { key: "ignoreCase", slot: Slot::Accessor { get: Some(Getter::RegExpFlag(b'i')), set: false }, attrs: CONFIGURABLE },
Prop { key: "multiline", slot: Slot::Accessor { get: Some(Getter::RegExpFlag(b'm')), set: false }, attrs: CONFIGURABLE },
Prop { key: "source", slot: Slot::Accessor { get: Some(Getter::RegExpSource), set: false }, attrs: CONFIGURABLE },
Prop { key: "sticky", slot: Slot::Accessor { get: Some(Getter::RegExpFlag(b'y')), set: false }, attrs: CONFIGURABLE },
Prop { key: "unicode", slot: Slot::Accessor { get: Some(Getter::RegExpFlag(b'u')), set: false }, attrs: CONFIGURABLE },
Prop { key: "compile", slot: Slot::Data(Data::Object(Builtin(175))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toString", slot: Slot::Data(Data::Object(Builtin(176))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "test", slot: Slot::Data(Data::Object(Builtin(177))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "unicodeSets", slot: Slot::Accessor { get: Some(Getter::RegExpFlag(b'v')), set: false }, attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Tag",
flags: CALLABLE | CONSTRUCTOR | CLASS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("class {\n constructor(name = \"div\", attributes = {}, children = []) {\n this.$$mdtype = \"Tag\";\n this.name = name;\n this.attributes = attributes;\n this.children = children;\n }\n static {\n this.isTag = (tag) => {\n return !!(tag?.$$mdtype === \"Tag\");\n };\n }\n}"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Tag")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(15))), attrs: 0 },
Prop { key: "isTag", slot: Slot::Data(Data::Object(Builtin(178))), attrs: WRITABLE | ENUMERABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Tag.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(14))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Class",
flags: CALLABLE | CONSTRUCTOR | CLASS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("class {\n validate(value, _config, key) {\n if (typeof value === \"string\" || typeof value === \"object\") return [];\n return [\n {\n id: \"attribute-type-invalid\",\n level: \"error\",\n message: `Attribute '${key}' must be type 'string | object'`\n }\n ];\n }\n transform(value) {\n if (!value || typeof value === \"string\") return value;\n const classes = [];\n for (const [k, v] of Object.entries(value ?? {})) if (v) classes.push(k);\n return classes.join(\" \");\n }\n}"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Class")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(17))), attrs: 0 },
],
},
ObjectData {
name: "Class.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(16))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "validate", slot: Slot::Data(Data::Object(Builtin(179))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "transform", slot: Slot::Data(Data::Object(Builtin(180))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Id",
flags: CALLABLE | CONSTRUCTOR | CLASS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("class {\n validate(value) {\n if (typeof value === \"string\" && value.match(/^[a-zA-Z]/)) return [];\n return [\n {\n id: \"attribute-value-invalid\",\n level: \"error\",\n message: \"The 'id' attribute must start with a letter\"\n }\n ];\n }\n}"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Id")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(19))), attrs: 0 },
],
},
ObjectData {
name: "Id.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(18))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "validate", slot: Slot::Data(Data::Object(Builtin(181))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "ConditionalAttributeType",
flags: CALLABLE | CONSTRUCTOR | CLASS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("class {\n validate(value, _config, key) {\n if (typeof value === \"boolean\" || value === null || value === void 0 || typeof value === \"object\") {\n return [];\n }\n return [\n {\n id: \"attribute-type-invalid\",\n level: \"error\",\n message: `Attribute '${key}' must be type 'boolean | object' (null or undefined are also allowed)`\n }\n ];\n }\n}"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("ConditionalAttributeType")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(21))), attrs: 0 },
],
},
ObjectData {
name: "ConditionalAttributeType.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(20))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "validate", slot: Slot::Data(Data::Object(Builtin(182))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "PartialFile",
flags: CALLABLE | CONSTRUCTOR | CLASS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("class {\n validate(file, config2) {\n const { partials = {} } = config2;\n const partial2 = partials[file];\n if (!partial2)\n return [\n {\n id: \"attribute-value-invalid\",\n level: \"error\",\n message: `Partial \\`${file}\\` not found. The 'file' attribute must be set in \\`config.partials\\``\n }\n ];\n return [];\n }\n}"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("PartialFile")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(23))), attrs: 0 },
],
},
ObjectData {
name: "PartialFile.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(22))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "validate", slot: Slot::Data(Data::Object(Builtin(183))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Node",
flags: CALLABLE | CONSTRUCTOR | CLASS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("class _Node {\n constructor(type = \"node\", attributes = {}, children = [], tag) {\n this.$$mdtype = \"Node\";\n this.errors = [];\n this.lines = [];\n this.inline = false;\n this.attributes = attributes;\n this.children = children;\n this.type = type;\n this.tag = tag;\n this.annotations = [];\n this.slots = {};\n }\n *walk() {\n for (const child of [...Object.values(this.slots), ...this.children]) {\n yield child;\n yield* child.walk();\n }\n }\n push(node2) {\n this.children.push(node2);\n }\n resolve(config2 = {}) {\n return Object.assign(new _Node(), this, {\n children: this.children.map((child) => child.resolve(config2)),\n attributes: resolve(this.attributes, config2),\n slots: Object.fromEntries(\n Object.entries(this.slots).map(([name, slot2]) => [\n name,\n slot2.resolve(config2)\n ])\n )\n });\n }\n findSchema(config2 = {}) {\n return transformer_default.findSchema(this, config2);\n }\n transformAttributes(config2 = {}) {\n return transformer_default.attributes(this, config2);\n }\n transformChildren(config2) {\n return transformer_default.children(this, config2);\n }\n transform(config2) {\n return transformer_default.node(this, config2);\n }\n}"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("_Node")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(25))), attrs: 0 },
],
},
ObjectData {
name: "Node.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(24))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "walk", slot: Slot::Data(Data::Object(Builtin(184))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "push", slot: Slot::Data(Data::Object(Builtin(185))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "resolve", slot: Slot::Data(Data::Object(Builtin(186))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "findSchema", slot: Slot::Data(Data::Object(Builtin(187))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "transformAttributes", slot: Slot::Data(Data::Object(Builtin(188))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "transformChildren", slot: Slot::Data(Data::Object(Builtin(189))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "transform", slot: Slot::Data(Data::Object(Builtin(190))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Variable",
flags: CALLABLE | CONSTRUCTOR | CLASS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("class {\n constructor(path = []) {\n this.$$mdtype = \"Variable\";\n this.path = path;\n }\n resolve({ variables } = {}) {\n return variables instanceof Function ? variables(this.path) : this.path.reduce((obj = {}, key) => obj[key], variables);\n }\n}"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Variable")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(27))), attrs: 0 },
],
},
ObjectData {
name: "Variable.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(26))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "resolve", slot: Slot::Data(Data::Object(Builtin(191))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "AstFunction",
flags: CALLABLE | CONSTRUCTOR | CLASS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("class {\n constructor(name, parameters) {\n this.$$mdtype = \"Function\";\n this.name = name;\n this.parameters = parameters;\n }\n resolve(config2 = {}) {\n const fn = config2?.functions?.[this.name];\n if (!fn) return null;\n const parameters = resolve(this.parameters, config2);\n return fn.transform?.(parameters, config2);\n }\n}"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Function2")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(29))), attrs: 0 },
],
},
ObjectData {
name: "AstFunction.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Object",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(28))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "resolve", slot: Slot::Data(Data::Object(Builtin(192))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Object.assign",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function assign() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("assign")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.getOwnPropertyDescriptor",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function getOwnPropertyDescriptor() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("getOwnPropertyDescriptor")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.getOwnPropertyDescriptors",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function getOwnPropertyDescriptors() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("getOwnPropertyDescriptors")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.getOwnPropertyNames",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function getOwnPropertyNames() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("getOwnPropertyNames")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.getOwnPropertySymbols",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function getOwnPropertySymbols() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("getOwnPropertySymbols")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.hasOwn",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function hasOwn() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("hasOwn")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.is",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function is() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("is")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.preventExtensions",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function preventExtensions() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("preventExtensions")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.seal",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function seal() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("seal")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.create",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function create() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("create")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.defineProperties",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function defineProperties() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("defineProperties")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.defineProperty",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function defineProperty() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(3.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("defineProperty")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.freeze",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function freeze() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("freeze")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.getPrototypeOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function getPrototypeOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("getPrototypeOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.setPrototypeOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function setPrototypeOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("setPrototypeOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.isExtensible",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isExtensible() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isExtensible")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.isFrozen",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isFrozen() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isFrozen")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.isSealed",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isSealed() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isSealed")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.keys",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function keys() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("keys")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.entries",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function entries() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("entries")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.fromEntries",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function fromEntries() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("fromEntries")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.values",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function values() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("values")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.groupBy",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function groupBy() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("groupBy")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.__defineGetter__",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function __defineGetter__() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("__defineGetter__")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.__defineSetter__",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function __defineSetter__() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("__defineSetter__")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.hasOwnProperty",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function hasOwnProperty() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("hasOwnProperty")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.__lookupGetter__",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function __lookupGetter__() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("__lookupGetter__")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.__lookupSetter__",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function __lookupSetter__() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("__lookupSetter__")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.isPrototypeOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isPrototypeOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isPrototypeOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.propertyIsEnumerable",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function propertyIsEnumerable() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("propertyIsEnumerable")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.toString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.valueOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function valueOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("valueOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Object.prototype.toLocaleString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toLocaleString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toLocaleString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Function.prototype.apply",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function apply() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("apply")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Function.prototype.bind",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function bind() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("bind")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Function.prototype.call",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function call() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("call")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Function.prototype.toString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.isArray",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isArray() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isArray")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.from",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function from() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("from")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.of",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function of() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("of")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.fromAsync",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function fromAsync() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("fromAsync")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.at",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function at() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("at")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.concat",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function concat() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("concat")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.copyWithin",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function copyWithin() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("copyWithin")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.fill",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function fill() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("fill")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.find",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function find() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("find")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.findIndex",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function findIndex() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("findIndex")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.findLast",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function findLast() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("findLast")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.findLastIndex",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function findLastIndex() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("findLastIndex")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.lastIndexOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function lastIndexOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("lastIndexOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.pop",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function pop() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("pop")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.push",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function push() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("push")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.reverse",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function reverse() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("reverse")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.shift",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function shift() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("shift")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.unshift",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function unshift() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("unshift")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.slice",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function slice() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("slice")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.sort",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function sort() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("sort")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.splice",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function splice() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("splice")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.includes",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function includes() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("includes")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.indexOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function indexOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("indexOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.join",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function join() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("join")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.keys",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function keys() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("keys")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.entries",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function entries() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("entries")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.values",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function values() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("values")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.forEach",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function forEach() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("forEach")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.filter",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function filter() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("filter")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.flat",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function flat() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("flat")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.flatMap",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function flatMap() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("flatMap")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.map",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function map() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("map")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.every",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function every() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("every")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.some",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function some() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("some")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.reduce",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function reduce() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("reduce")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.reduceRight",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function reduceRight() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("reduceRight")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.toReversed",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toReversed() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toReversed")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.toSorted",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toSorted() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toSorted")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.toSpliced",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toSpliced() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toSpliced")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.with",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function with() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("with")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.toLocaleString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toLocaleString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toLocaleString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Array.prototype.toString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.fromCharCode",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function fromCharCode() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("fromCharCode")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.fromCodePoint",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function fromCodePoint() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("fromCodePoint")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.raw",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function raw() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("raw")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.anchor",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function anchor() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("anchor")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.at",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function at() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("at")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.big",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function big() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("big")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.blink",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function blink() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("blink")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.bold",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function bold() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("bold")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.charAt",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function charAt() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("charAt")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.charCodeAt",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function charCodeAt() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("charCodeAt")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.codePointAt",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function codePointAt() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("codePointAt")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.concat",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function concat() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("concat")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.endsWith",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function endsWith() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("endsWith")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.fontcolor",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function fontcolor() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("fontcolor")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.fontsize",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function fontsize() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("fontsize")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.fixed",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function fixed() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("fixed")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.includes",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function includes() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("includes")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.indexOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function indexOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("indexOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.isWellFormed",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isWellFormed() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isWellFormed")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.italics",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function italics() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("italics")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.lastIndexOf",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function lastIndexOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("lastIndexOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.link",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function link() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("link")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.localeCompare",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function localeCompare() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("localeCompare")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.match",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function match() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("match")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.matchAll",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function matchAll() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("matchAll")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.normalize",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function normalize() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("normalize")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.padEnd",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function padEnd() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("padEnd")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.padStart",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function padStart() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("padStart")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.repeat",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function repeat() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("repeat")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.replace",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function replace() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("replace")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.replaceAll",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function replaceAll() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("replaceAll")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.search",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function search() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("search")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.slice",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function slice() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("slice")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.small",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function small() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("small")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.split",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function split() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("split")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.strike",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function strike() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("strike")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.sub",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function sub() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("sub")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.substr",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function substr() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("substr")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.substring",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function substring() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("substring")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.sup",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function sup() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("sup")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.startsWith",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function startsWith() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("startsWith")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.toString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.toWellFormed",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toWellFormed() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toWellFormed")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.trim",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function trim() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("trim")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.trimStart",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function trimStart() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("trimStart")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.trimEnd",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function trimEnd() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("trimEnd")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.toLocaleLowerCase",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toLocaleLowerCase() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toLocaleLowerCase")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.toLocaleUpperCase",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toLocaleUpperCase() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toLocaleUpperCase")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.toLowerCase",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toLowerCase() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toLowerCase")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.toUpperCase",
flags: CALLABLE | FRAMELESS,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toUpperCase() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toUpperCase")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "String.prototype.valueOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function valueOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("valueOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.isFinite",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isFinite() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isFinite")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.isInteger",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isInteger() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isInteger")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.isNaN",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isNaN() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isNaN")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.isSafeInteger",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function isSafeInteger() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("isSafeInteger")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.parseFloat",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function parseFloat() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("parseFloat")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.parseInt",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function parseInt() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("parseInt")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.prototype.toExponential",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toExponential() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toExponential")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.prototype.toFixed",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toFixed() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toFixed")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.prototype.toPrecision",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toPrecision() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toPrecision")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.prototype.toString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.prototype.valueOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function valueOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("valueOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Number.prototype.toLocaleString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toLocaleString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toLocaleString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Boolean.prototype.toString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Boolean.prototype.valueOf",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function valueOf() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("valueOf")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "RegExp.prototype.exec",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function exec() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("exec")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "RegExp.prototype.compile",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function compile() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("compile")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "RegExp.prototype.toString",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toString() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toString")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "RegExp.prototype.test",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function test() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("test")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Tag.isTag",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("(tag) => {\n return !!(tag?.$$mdtype === \"Tag\");\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Class.prototype.validate",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("validate(value, _config, key) {\n if (typeof value === \"string\" || typeof value === \"object\") return [];\n return [\n {\n id: \"attribute-type-invalid\",\n level: \"error\",\n message: `Attribute '${key}' must be type 'string | object'`\n }\n ];\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(3.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("validate")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Class.prototype.transform",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("transform(value) {\n if (!value || typeof value === \"string\") return value;\n const classes = [];\n for (const [k, v] of Object.entries(value ?? {})) if (v) classes.push(k);\n return classes.join(\" \");\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("transform")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Id.prototype.validate",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("validate(value) {\n if (typeof value === \"string\" && value.match(/^[a-zA-Z]/)) return [];\n return [\n {\n id: \"attribute-value-invalid\",\n level: \"error\",\n message: \"The 'id' attribute must start with a letter\"\n }\n ];\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("validate")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "ConditionalAttributeType.prototype.validate",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("validate(value, _config, key) {\n if (typeof value === \"boolean\" || value === null || value === void 0 || typeof value === \"object\") {\n return [];\n }\n return [\n {\n id: \"attribute-type-invalid\",\n level: \"error\",\n message: `Attribute '${key}' must be type 'boolean | object' (null or undefined are also allowed)`\n }\n ];\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(3.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("validate")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "PartialFile.prototype.validate",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("validate(file, config2) {\n const { partials = {} } = config2;\n const partial2 = partials[file];\n if (!partial2)\n return [\n {\n id: \"attribute-value-invalid\",\n level: \"error\",\n message: `Partial \\`${file}\\` not found. The 'file' attribute must be set in \\`config.partials\\``\n }\n ];\n return [];\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(2.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("validate")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Node.prototype.walk",
flags: CALLABLE,
proto: Some(Builtin(194)),
class: "GeneratorFunction",
wrapped: None,
source: Some("*walk() {\n for (const child of [...Object.values(this.slots), ...this.children]) {\n yield child;\n yield* child.walk();\n }\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("walk")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(193))), attrs: WRITABLE },
],
},
ObjectData {
name: "Node.prototype.push",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("push(node2) {\n this.children.push(node2);\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("push")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Node.prototype.resolve",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("resolve(config2 = {}) {\n return Object.assign(new _Node(), this, {\n children: this.children.map((child) => child.resolve(config2)),\n attributes: resolve(this.attributes, config2),\n slots: Object.fromEntries(\n Object.entries(this.slots).map(([name, slot2]) => [\n name,\n slot2.resolve(config2)\n ])\n )\n });\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("resolve")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Node.prototype.findSchema",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("findSchema(config2 = {}) {\n return transformer_default.findSchema(this, config2);\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("findSchema")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Node.prototype.transformAttributes",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("transformAttributes(config2 = {}) {\n return transformer_default.attributes(this, config2);\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("transformAttributes")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Node.prototype.transformChildren",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("transformChildren(config2) {\n return transformer_default.children(this, config2);\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("transformChildren")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Node.prototype.transform",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("transform(config2) {\n return transformer_default.node(this, config2);\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("transform")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Variable.prototype.resolve",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("resolve({ variables } = {}) {\n return variables instanceof Function ? variables(this.path) : this.path.reduce((obj = {}, key) => obj[key], variables);\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("resolve")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "AstFunction.prototype.resolve",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("resolve(config2 = {}) {\n const fn = config2?.functions?.[this.name];\n if (!fn) return null;\n const parameters = resolve(this.parameters, config2);\n return fn.transform?.(parameters, config2);\n }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("resolve")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Node.prototype.walk.prototype",
flags: 0,
proto: Some(Builtin(195)),
class: "Generator",
wrapped: None,
source: None,
props: &[
],
},
ObjectData {
name: "GeneratorFunction.prototype",
flags: 0,
proto: Some(Builtin(3)),
class: "GeneratorFunction",
wrapped: None,
source: None,
props: &[
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(195))), attrs: CONFIGURABLE },
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(196))), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Generator.prototype",
flags: 0,
proto: Some(Builtin(200)),
class: "Generator",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Data(Data::Object(Builtin(194))), attrs: CONFIGURABLE },
Prop { key: "next", slot: Slot::Data(Data::Object(Builtin(197))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "return", slot: Slot::Data(Data::Object(Builtin(198))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "throw", slot: Slot::Data(Data::Object(Builtin(199))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "GeneratorFunction",
flags: CALLABLE | CONSTRUCTOR,
proto: Some(Builtin(2)),
class: "Function",
wrapped: None,
source: Some("function GeneratorFunction() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("GeneratorFunction")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(194))), attrs: 0 },
],
},
ObjectData {
name: "Generator.prototype.next",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function next() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("next")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Generator.prototype.return",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function return() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("return")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Generator.prototype.throw",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function throw() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("throw")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype",
flags: 0,
proto: Some(Builtin(1)),
class: "Iterator",
wrapped: None,
source: None,
props: &[
Prop { key: "constructor", slot: Slot::Accessor { get: Some(Getter::Constant(Builtin(201))), set: true }, attrs: CONFIGURABLE },
Prop { key: "reduce", slot: Slot::Data(Data::Object(Builtin(202))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "toArray", slot: Slot::Data(Data::Object(Builtin(203))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "forEach", slot: Slot::Data(Data::Object(Builtin(204))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "some", slot: Slot::Data(Data::Object(Builtin(205))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "every", slot: Slot::Data(Data::Object(Builtin(206))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "find", slot: Slot::Data(Data::Object(Builtin(207))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "map", slot: Slot::Data(Data::Object(Builtin(208))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "filter", slot: Slot::Data(Data::Object(Builtin(209))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "take", slot: Slot::Data(Data::Object(Builtin(210))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "drop", slot: Slot::Data(Data::Object(Builtin(211))), attrs: WRITABLE | CONFIGURABLE },
Prop { key: "flatMap", slot: Slot::Data(Data::Object(Builtin(212))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Iterator",
flags: CALLABLE | CONSTRUCTOR,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function Iterator() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("Iterator")), attrs: CONFIGURABLE },
Prop { key: "prototype", slot: Slot::Data(Data::Object(Builtin(200))), attrs: 0 },
Prop { key: "from", slot: Slot::Data(Data::Object(Builtin(213))), attrs: WRITABLE | CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.reduce",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function reduce() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("reduce")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.toArray",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function toArray() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(0.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("toArray")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.forEach",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function forEach() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("forEach")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.some",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function some() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("some")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.every",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function every() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("every")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.find",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function find() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("find")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.map",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function map() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("map")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.filter",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function filter() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("filter")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.take",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function take() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("take")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.drop",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function drop() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("drop")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.prototype.flatMap",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function flatMap() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("flatMap")), attrs: CONFIGURABLE },
],
},
ObjectData {
name: "Iterator.from",
flags: CALLABLE,
proto: Some(Builtin(3)),
class: "Function",
wrapped: None,
source: Some("function from() { [native code] }"),
props: &[
Prop { key: "length", slot: Slot::Data(Data::Number(1.0)), attrs: CONFIGURABLE },
Prop { key: "name", slot: Slot::Data(Data::String("from")), attrs: CONFIGURABLE },
],
},
];
/// What node gives for each object (by index): `typeof`, `String(o)`, `JSON.stringify(o)`
/// (`None` for `undefined`), `Object.keys(o)`; a thrown error as `Err("Name: message")`.
#[cfg(test)]
#[allow(clippy::type_complexity)]
pub(super) static EXPECTED: [(&str, Result<&str, &str>, Result<Option<&str>, &str>, &[&str]); 214] = [
("function", Ok("function Object() { [native code] }"), Ok(None), &[]),
("object", Ok("[object Object]"), Ok(Some("{}")), &[]),
("function", Ok("function Function() { [native code] }"), Ok(None), &[]),
("function", Ok("function () { [native code] }"), Ok(None), &[]),
("function", Ok("function Array() { [native code] }"), Ok(None), &[]),
("object", Ok(""), Ok(Some("[]")), &[]),
("function", Ok("function String() { [native code] }"), Ok(None), &[]),
("object", Ok(""), Ok(Some("\"\"")), &[]),
("function", Ok("function Number() { [native code] }"), Ok(None), &[]),
("object", Ok("0"), Ok(Some("0")), &[]),
("function", Ok("function Boolean() { [native code] }"), Ok(None), &[]),
("object", Ok("false"), Ok(Some("false")), &[]),
("function", Ok("function RegExp() { [native code] }"), Ok(None), &[]),
("object", Ok("/(?:)/"), Ok(Some("{}")), &[]),
("function", Ok("class {\n constructor(name = \"div\", attributes = {}, children = []) {\n this.$$mdtype = \"Tag\";\n this.name = name;\n this.attributes = attributes;\n this.children = children;\n }\n static {\n this.isTag = (tag) => {\n return !!(tag?.$$mdtype === \"Tag\");\n };\n }\n}"), Ok(None), &["isTag"]),
("object", Ok("[object Object]"), Ok(Some("{}")), &[]),
("function", Ok("class {\n validate(value, _config, key) {\n if (typeof value === \"string\" || typeof value === \"object\") return [];\n return [\n {\n id: \"attribute-type-invalid\",\n level: \"error\",\n message: `Attribute '${key}' must be type 'string | object'`\n }\n ];\n }\n transform(value) {\n if (!value || typeof value === \"string\") return value;\n const classes = [];\n for (const [k, v] of Object.entries(value ?? {})) if (v) classes.push(k);\n return classes.join(\" \");\n }\n}"), Ok(None), &[]),
("object", Ok("[object Object]"), Ok(Some("{}")), &[]),
("function", Ok("class {\n validate(value) {\n if (typeof value === \"string\" && value.match(/^[a-zA-Z]/)) return [];\n return [\n {\n id: \"attribute-value-invalid\",\n level: \"error\",\n message: \"The 'id' attribute must start with a letter\"\n }\n ];\n }\n}"), Ok(None), &[]),
("object", Ok("[object Object]"), Ok(Some("{}")), &[]),
("function", Ok("class {\n validate(value, _config, key) {\n if (typeof value === \"boolean\" || value === null || value === void 0 || typeof value === \"object\") {\n return [];\n }\n return [\n {\n id: \"attribute-type-invalid\",\n level: \"error\",\n message: `Attribute '${key}' must be type 'boolean | object' (null or undefined are also allowed)`\n }\n ];\n }\n}"), Ok(None), &[]),
("object", Ok("[object Object]"), Ok(Some("{}")), &[]),
("function", Ok("class {\n validate(file, config2) {\n const { partials = {} } = config2;\n const partial2 = partials[file];\n if (!partial2)\n return [\n {\n id: \"attribute-value-invalid\",\n level: \"error\",\n message: `Partial \\`${file}\\` not found. The 'file' attribute must be set in \\`config.partials\\``\n }\n ];\n return [];\n }\n}"), Ok(None), &[]),
("object", Ok("[object Object]"), Ok(Some("{}")), &[]),
("function", Ok("class _Node {\n constructor(type = \"node\", attributes = {}, children = [], tag) {\n this.$$mdtype = \"Node\";\n this.errors = [];\n this.lines = [];\n this.inline = false;\n this.attributes = attributes;\n this.children = children;\n this.type = type;\n this.tag = tag;\n this.annotations = [];\n this.slots = {};\n }\n *walk() {\n for (const child of [...Object.values(this.slots), ...this.children]) {\n yield child;\n yield* child.walk();\n }\n }\n push(node2) {\n this.children.push(node2);\n }\n resolve(config2 = {}) {\n return Object.assign(new _Node(), this, {\n children: this.children.map((child) => child.resolve(config2)),\n attributes: resolve(this.attributes, config2),\n slots: Object.fromEntries(\n Object.entries(this.slots).map(([name, slot2]) => [\n name,\n slot2.resolve(config2)\n ])\n )\n });\n }\n findSchema(config2 = {}) {\n return transformer_default.findSchema(this, config2);\n }\n transformAttributes(config2 = {}) {\n return transformer_default.attributes(this, config2);\n }\n transformChildren(config2) {\n return transformer_default.children(this, config2);\n }\n transform(config2) {\n return transformer_default.node(this, config2);\n }\n}"), Ok(None), &[]),
("object", Ok("[object Object]"), Ok(Some("{}")), &[]),
("function", Ok("class {\n constructor(path = []) {\n this.$$mdtype = \"Variable\";\n this.path = path;\n }\n resolve({ variables } = {}) {\n return variables instanceof Function ? variables(this.path) : this.path.reduce((obj = {}, key) => obj[key], variables);\n }\n}"), Ok(None), &[]),
("object", Ok("[object Object]"), Ok(Some("{}")), &[]),
("function", Ok("class {\n constructor(name, parameters) {\n this.$$mdtype = \"Function\";\n this.name = name;\n this.parameters = parameters;\n }\n resolve(config2 = {}) {\n const fn = config2?.functions?.[this.name];\n if (!fn) return null;\n const parameters = resolve(this.parameters, config2);\n return fn.transform?.(parameters, config2);\n }\n}"), Ok(None), &[]),
("object", Ok("[object Object]"), Ok(Some("{}")), &[]),
("function", Ok("function assign() { [native code] }"), Ok(None), &[]),
("function", Ok("function getOwnPropertyDescriptor() { [native code] }"), Ok(None), &[]),
("function", Ok("function getOwnPropertyDescriptors() { [native code] }"), Ok(None), &[]),
("function", Ok("function getOwnPropertyNames() { [native code] }"), Ok(None), &[]),
("function", Ok("function getOwnPropertySymbols() { [native code] }"), Ok(None), &[]),
("function", Ok("function hasOwn() { [native code] }"), Ok(None), &[]),
("function", Ok("function is() { [native code] }"), Ok(None), &[]),
("function", Ok("function preventExtensions() { [native code] }"), Ok(None), &[]),
("function", Ok("function seal() { [native code] }"), Ok(None), &[]),
("function", Ok("function create() { [native code] }"), Ok(None), &[]),
("function", Ok("function defineProperties() { [native code] }"), Ok(None), &[]),
("function", Ok("function defineProperty() { [native code] }"), Ok(None), &[]),
("function", Ok("function freeze() { [native code] }"), Ok(None), &[]),
("function", Ok("function getPrototypeOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function setPrototypeOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function isExtensible() { [native code] }"), Ok(None), &[]),
("function", Ok("function isFrozen() { [native code] }"), Ok(None), &[]),
("function", Ok("function isSealed() { [native code] }"), Ok(None), &[]),
("function", Ok("function keys() { [native code] }"), Ok(None), &[]),
("function", Ok("function entries() { [native code] }"), Ok(None), &[]),
("function", Ok("function fromEntries() { [native code] }"), Ok(None), &[]),
("function", Ok("function values() { [native code] }"), Ok(None), &[]),
("function", Ok("function groupBy() { [native code] }"), Ok(None), &[]),
("function", Ok("function __defineGetter__() { [native code] }"), Ok(None), &[]),
("function", Ok("function __defineSetter__() { [native code] }"), Ok(None), &[]),
("function", Ok("function hasOwnProperty() { [native code] }"), Ok(None), &[]),
("function", Ok("function __lookupGetter__() { [native code] }"), Ok(None), &[]),
("function", Ok("function __lookupSetter__() { [native code] }"), Ok(None), &[]),
("function", Ok("function isPrototypeOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function propertyIsEnumerable() { [native code] }"), Ok(None), &[]),
("function", Ok("function toString() { [native code] }"), Ok(None), &[]),
("function", Ok("function valueOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function toLocaleString() { [native code] }"), Ok(None), &[]),
("function", Ok("function apply() { [native code] }"), Ok(None), &[]),
("function", Ok("function bind() { [native code] }"), Ok(None), &[]),
("function", Ok("function call() { [native code] }"), Ok(None), &[]),
("function", Ok("function toString() { [native code] }"), Ok(None), &[]),
("function", Ok("function isArray() { [native code] }"), Ok(None), &[]),
("function", Ok("function from() { [native code] }"), Ok(None), &[]),
("function", Ok("function of() { [native code] }"), Ok(None), &[]),
("function", Ok("function fromAsync() { [native code] }"), Ok(None), &[]),
("function", Ok("function at() { [native code] }"), Ok(None), &[]),
("function", Ok("function concat() { [native code] }"), Ok(None), &[]),
("function", Ok("function copyWithin() { [native code] }"), Ok(None), &[]),
("function", Ok("function fill() { [native code] }"), Ok(None), &[]),
("function", Ok("function find() { [native code] }"), Ok(None), &[]),
("function", Ok("function findIndex() { [native code] }"), Ok(None), &[]),
("function", Ok("function findLast() { [native code] }"), Ok(None), &[]),
("function", Ok("function findLastIndex() { [native code] }"), Ok(None), &[]),
("function", Ok("function lastIndexOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function pop() { [native code] }"), Ok(None), &[]),
("function", Ok("function push() { [native code] }"), Ok(None), &[]),
("function", Ok("function reverse() { [native code] }"), Ok(None), &[]),
("function", Ok("function shift() { [native code] }"), Ok(None), &[]),
("function", Ok("function unshift() { [native code] }"), Ok(None), &[]),
("function", Ok("function slice() { [native code] }"), Ok(None), &[]),
("function", Ok("function sort() { [native code] }"), Ok(None), &[]),
("function", Ok("function splice() { [native code] }"), Ok(None), &[]),
("function", Ok("function includes() { [native code] }"), Ok(None), &[]),
("function", Ok("function indexOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function join() { [native code] }"), Ok(None), &[]),
("function", Ok("function keys() { [native code] }"), Ok(None), &[]),
("function", Ok("function entries() { [native code] }"), Ok(None), &[]),
("function", Ok("function values() { [native code] }"), Ok(None), &[]),
("function", Ok("function forEach() { [native code] }"), Ok(None), &[]),
("function", Ok("function filter() { [native code] }"), Ok(None), &[]),
("function", Ok("function flat() { [native code] }"), Ok(None), &[]),
("function", Ok("function flatMap() { [native code] }"), Ok(None), &[]),
("function", Ok("function map() { [native code] }"), Ok(None), &[]),
("function", Ok("function every() { [native code] }"), Ok(None), &[]),
("function", Ok("function some() { [native code] }"), Ok(None), &[]),
("function", Ok("function reduce() { [native code] }"), Ok(None), &[]),
("function", Ok("function reduceRight() { [native code] }"), Ok(None), &[]),
("function", Ok("function toReversed() { [native code] }"), Ok(None), &[]),
("function", Ok("function toSorted() { [native code] }"), Ok(None), &[]),
("function", Ok("function toSpliced() { [native code] }"), Ok(None), &[]),
("function", Ok("function with() { [native code] }"), Ok(None), &[]),
("function", Ok("function toLocaleString() { [native code] }"), Ok(None), &[]),
("function", Ok("function toString() { [native code] }"), Ok(None), &[]),
("function", Ok("function fromCharCode() { [native code] }"), Ok(None), &[]),
("function", Ok("function fromCodePoint() { [native code] }"), Ok(None), &[]),
("function", Ok("function raw() { [native code] }"), Ok(None), &[]),
("function", Ok("function anchor() { [native code] }"), Ok(None), &[]),
("function", Ok("function at() { [native code] }"), Ok(None), &[]),
("function", Ok("function big() { [native code] }"), Ok(None), &[]),
("function", Ok("function blink() { [native code] }"), Ok(None), &[]),
("function", Ok("function bold() { [native code] }"), Ok(None), &[]),
("function", Ok("function charAt() { [native code] }"), Ok(None), &[]),
("function", Ok("function charCodeAt() { [native code] }"), Ok(None), &[]),
("function", Ok("function codePointAt() { [native code] }"), Ok(None), &[]),
("function", Ok("function concat() { [native code] }"), Ok(None), &[]),
("function", Ok("function endsWith() { [native code] }"), Ok(None), &[]),
("function", Ok("function fontcolor() { [native code] }"), Ok(None), &[]),
("function", Ok("function fontsize() { [native code] }"), Ok(None), &[]),
("function", Ok("function fixed() { [native code] }"), Ok(None), &[]),
("function", Ok("function includes() { [native code] }"), Ok(None), &[]),
("function", Ok("function indexOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function isWellFormed() { [native code] }"), Ok(None), &[]),
("function", Ok("function italics() { [native code] }"), Ok(None), &[]),
("function", Ok("function lastIndexOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function link() { [native code] }"), Ok(None), &[]),
("function", Ok("function localeCompare() { [native code] }"), Ok(None), &[]),
("function", Ok("function match() { [native code] }"), Ok(None), &[]),
("function", Ok("function matchAll() { [native code] }"), Ok(None), &[]),
("function", Ok("function normalize() { [native code] }"), Ok(None), &[]),
("function", Ok("function padEnd() { [native code] }"), Ok(None), &[]),
("function", Ok("function padStart() { [native code] }"), Ok(None), &[]),
("function", Ok("function repeat() { [native code] }"), Ok(None), &[]),
("function", Ok("function replace() { [native code] }"), Ok(None), &[]),
("function", Ok("function replaceAll() { [native code] }"), Ok(None), &[]),
("function", Ok("function search() { [native code] }"), Ok(None), &[]),
("function", Ok("function slice() { [native code] }"), Ok(None), &[]),
("function", Ok("function small() { [native code] }"), Ok(None), &[]),
("function", Ok("function split() { [native code] }"), Ok(None), &[]),
("function", Ok("function strike() { [native code] }"), Ok(None), &[]),
("function", Ok("function sub() { [native code] }"), Ok(None), &[]),
("function", Ok("function substr() { [native code] }"), Ok(None), &[]),
("function", Ok("function substring() { [native code] }"), Ok(None), &[]),
("function", Ok("function sup() { [native code] }"), Ok(None), &[]),
("function", Ok("function startsWith() { [native code] }"), Ok(None), &[]),
("function", Ok("function toString() { [native code] }"), Ok(None), &[]),
("function", Ok("function toWellFormed() { [native code] }"), Ok(None), &[]),
("function", Ok("function trim() { [native code] }"), Ok(None), &[]),
("function", Ok("function trimStart() { [native code] }"), Ok(None), &[]),
("function", Ok("function trimEnd() { [native code] }"), Ok(None), &[]),
("function", Ok("function toLocaleLowerCase() { [native code] }"), Ok(None), &[]),
("function", Ok("function toLocaleUpperCase() { [native code] }"), Ok(None), &[]),
("function", Ok("function toLowerCase() { [native code] }"), Ok(None), &[]),
("function", Ok("function toUpperCase() { [native code] }"), Ok(None), &[]),
("function", Ok("function valueOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function isFinite() { [native code] }"), Ok(None), &[]),
("function", Ok("function isInteger() { [native code] }"), Ok(None), &[]),
("function", Ok("function isNaN() { [native code] }"), Ok(None), &[]),
("function", Ok("function isSafeInteger() { [native code] }"), Ok(None), &[]),
("function", Ok("function parseFloat() { [native code] }"), Ok(None), &[]),
("function", Ok("function parseInt() { [native code] }"), Ok(None), &[]),
("function", Ok("function toExponential() { [native code] }"), Ok(None), &[]),
("function", Ok("function toFixed() { [native code] }"), Ok(None), &[]),
("function", Ok("function toPrecision() { [native code] }"), Ok(None), &[]),
("function", Ok("function toString() { [native code] }"), Ok(None), &[]),
("function", Ok("function valueOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function toLocaleString() { [native code] }"), Ok(None), &[]),
("function", Ok("function toString() { [native code] }"), Ok(None), &[]),
("function", Ok("function valueOf() { [native code] }"), Ok(None), &[]),
("function", Ok("function exec() { [native code] }"), Ok(None), &[]),
("function", Ok("function compile() { [native code] }"), Ok(None), &[]),
("function", Ok("function toString() { [native code] }"), Ok(None), &[]),
("function", Ok("function test() { [native code] }"), Ok(None), &[]),
("function", Ok("(tag) => {\n return !!(tag?.$$mdtype === \"Tag\");\n }"), Ok(None), &[]),
("function", Ok("validate(value, _config, key) {\n if (typeof value === \"string\" || typeof value === \"object\") return [];\n return [\n {\n id: \"attribute-type-invalid\",\n level: \"error\",\n message: `Attribute '${key}' must be type 'string | object'`\n }\n ];\n }"), Ok(None), &[]),
("function", Ok("transform(value) {\n if (!value || typeof value === \"string\") return value;\n const classes = [];\n for (const [k, v] of Object.entries(value ?? {})) if (v) classes.push(k);\n return classes.join(\" \");\n }"), Ok(None), &[]),
("function", Ok("validate(value) {\n if (typeof value === \"string\" && value.match(/^[a-zA-Z]/)) return [];\n return [\n {\n id: \"attribute-value-invalid\",\n level: \"error\",\n message: \"The 'id' attribute must start with a letter\"\n }\n ];\n }"), Ok(None), &[]),
("function", Ok("validate(value, _config, key) {\n if (typeof value === \"boolean\" || value === null || value === void 0 || typeof value === \"object\") {\n return [];\n }\n return [\n {\n id: \"attribute-type-invalid\",\n level: \"error\",\n message: `Attribute '${key}' must be type 'boolean | object' (null or undefined are also allowed)`\n }\n ];\n }"), Ok(None), &[]),
("function", Ok("validate(file, config2) {\n const { partials = {} } = config2;\n const partial2 = partials[file];\n if (!partial2)\n return [\n {\n id: \"attribute-value-invalid\",\n level: \"error\",\n message: `Partial \\`${file}\\` not found. The 'file' attribute must be set in \\`config.partials\\``\n }\n ];\n return [];\n }"), Ok(None), &[]),
("function", Ok("*walk() {\n for (const child of [...Object.values(this.slots), ...this.children]) {\n yield child;\n yield* child.walk();\n }\n }"), Ok(None), &[]),
("function", Ok("push(node2) {\n this.children.push(node2);\n }"), Ok(None), &[]),
("function", Ok("resolve(config2 = {}) {\n return Object.assign(new _Node(), this, {\n children: this.children.map((child) => child.resolve(config2)),\n attributes: resolve(this.attributes, config2),\n slots: Object.fromEntries(\n Object.entries(this.slots).map(([name, slot2]) => [\n name,\n slot2.resolve(config2)\n ])\n )\n });\n }"), Ok(None), &[]),
("function", Ok("findSchema(config2 = {}) {\n return transformer_default.findSchema(this, config2);\n }"), Ok(None), &[]),
("function", Ok("transformAttributes(config2 = {}) {\n return transformer_default.attributes(this, config2);\n }"), Ok(None), &[]),
("function", Ok("transformChildren(config2) {\n return transformer_default.children(this, config2);\n }"), Ok(None), &[]),
("function", Ok("transform(config2) {\n return transformer_default.node(this, config2);\n }"), Ok(None), &[]),
("function", Ok("resolve({ variables } = {}) {\n return variables instanceof Function ? variables(this.path) : this.path.reduce((obj = {}, key) => obj[key], variables);\n }"), Ok(None), &[]),
("function", Ok("resolve(config2 = {}) {\n const fn = config2?.functions?.[this.name];\n if (!fn) return null;\n const parameters = resolve(this.parameters, config2);\n return fn.transform?.(parameters, config2);\n }"), Ok(None), &[]),
("object", Ok("[object Generator]"), Ok(Some("{}")), &[]),
("object", Err("TypeError: Function.prototype.toString requires that 'this' be a Function"), Ok(Some("{}")), &[]),
("object", Ok("[object Generator]"), Ok(Some("{}")), &[]),
("function", Ok("function GeneratorFunction() { [native code] }"), Ok(None), &[]),
("function", Ok("function next() { [native code] }"), Ok(None), &[]),
("function", Ok("function return() { [native code] }"), Ok(None), &[]),
("function", Ok("function throw() { [native code] }"), Ok(None), &[]),
("object", Ok("[object Iterator]"), Ok(Some("{}")), &[]),
("function", Ok("function Iterator() { [native code] }"), Ok(None), &[]),
("function", Ok("function reduce() { [native code] }"), Ok(None), &[]),
("function", Ok("function toArray() { [native code] }"), Ok(None), &[]),
("function", Ok("function forEach() { [native code] }"), Ok(None), &[]),
("function", Ok("function some() { [native code] }"), Ok(None), &[]),
("function", Ok("function every() { [native code] }"), Ok(None), &[]),
("function", Ok("function find() { [native code] }"), Ok(None), &[]),
("function", Ok("function map() { [native code] }"), Ok(None), &[]),
("function", Ok("function filter() { [native code] }"), Ok(None), &[]),
("function", Ok("function take() { [native code] }"), Ok(None), &[]),
("function", Ok("function drop() { [native code] }"), Ok(None), &[]),
("function", Ok("function flatMap() { [native code] }"), Ok(None), &[]),
("function", Ok("function from() { [native code] }"), Ok(None), &[]),
];
/// ICU's root collation of ASCII: each character's primary weight (0 for an ignorable one).
pub(super) static ASCII_PRIMARY: [u8; 128] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 12, 16, 28, 38, 29, 27, 15, 17, 18, 24, 32, 9, 8, 14, 25, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 11, 10, 33, 34, 35, 13, 23, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 19, 26, 20, 31, 7, 30, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 21, 36, 22, 37, 0];
/// ... and its tertiary weight within its primary (lower case first).
pub(super) static ASCII_TERTIARY: [u8; 128] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];