UNPKG

6.04 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.StaticProperties = exports.InstanceProperties = exports.BuiltIns = void 0;
7const ArrayNatureIterators = ["es6.object.to-string", "es6.array.iterator", "web.dom.iterable"];
8const CommonIterators = ["es6.string.iterator", ...ArrayNatureIterators];
9const PromiseDependencies = ["es6.object.to-string", "es6.promise"];
10const BuiltIns = {
11 DataView: "es6.typed.data-view",
12 Float32Array: "es6.typed.float32-array",
13 Float64Array: "es6.typed.float64-array",
14 Int8Array: "es6.typed.int8-array",
15 Int16Array: "es6.typed.int16-array",
16 Int32Array: "es6.typed.int32-array",
17 Map: ["es6.map", ...CommonIterators],
18 Number: "es6.number.constructor",
19 Promise: PromiseDependencies,
20 RegExp: ["es6.regexp.constructor"],
21 Set: ["es6.set", ...CommonIterators],
22 Symbol: ["es6.symbol", "es7.symbol.async-iterator"],
23 Uint8Array: "es6.typed.uint8-array",
24 Uint8ClampedArray: "es6.typed.uint8-clamped-array",
25 Uint16Array: "es6.typed.uint16-array",
26 Uint32Array: "es6.typed.uint32-array",
27 WeakMap: ["es6.weak-map", ...CommonIterators],
28 WeakSet: ["es6.weak-set", ...CommonIterators]
29};
30exports.BuiltIns = BuiltIns;
31const InstanceProperties = {
32 __defineGetter__: ["es7.object.define-getter"],
33 __defineSetter__: ["es7.object.define-setter"],
34 __lookupGetter__: ["es7.object.lookup-getter"],
35 __lookupSetter__: ["es7.object.lookup-setter"],
36 anchor: ["es6.string.anchor"],
37 big: ["es6.string.big"],
38 bind: ["es6.function.bind"],
39 blink: ["es6.string.blink"],
40 bold: ["es6.string.bold"],
41 codePointAt: ["es6.string.code-point-at"],
42 copyWithin: ["es6.array.copy-within"],
43 endsWith: ["es6.string.ends-with"],
44 entries: ArrayNatureIterators,
45 every: ["es6.array.is-array"],
46 fill: ["es6.array.fill"],
47 filter: ["es6.array.filter"],
48 finally: ["es7.promise.finally", ...PromiseDependencies],
49 find: ["es6.array.find"],
50 findIndex: ["es6.array.find-index"],
51 fixed: ["es6.string.fixed"],
52 flags: ["es6.regexp.flags"],
53 flatMap: ["es7.array.flat-map"],
54 fontcolor: ["es6.string.fontcolor"],
55 fontsize: ["es6.string.fontsize"],
56 forEach: ["es6.array.for-each"],
57 includes: ["es6.string.includes", "es7.array.includes"],
58 indexOf: ["es6.array.index-of"],
59 italics: ["es6.string.italics"],
60 keys: ArrayNatureIterators,
61 lastIndexOf: ["es6.array.last-index-of"],
62 link: ["es6.string.link"],
63 map: ["es6.array.map"],
64 match: ["es6.regexp.match"],
65 name: ["es6.function.name"],
66 padStart: ["es7.string.pad-start"],
67 padEnd: ["es7.string.pad-end"],
68 reduce: ["es6.array.reduce"],
69 reduceRight: ["es6.array.reduce-right"],
70 repeat: ["es6.string.repeat"],
71 replace: ["es6.regexp.replace"],
72 search: ["es6.regexp.search"],
73 slice: ["es6.array.slice"],
74 small: ["es6.string.small"],
75 some: ["es6.array.some"],
76 sort: ["es6.array.sort"],
77 split: ["es6.regexp.split"],
78 startsWith: ["es6.string.starts-with"],
79 strike: ["es6.string.strike"],
80 sub: ["es6.string.sub"],
81 sup: ["es6.string.sup"],
82 toISOString: ["es6.date.to-iso-string"],
83 toJSON: ["es6.date.to-json"],
84 toString: ["es6.object.to-string", "es6.date.to-string", "es6.regexp.to-string"],
85 trim: ["es6.string.trim"],
86 trimEnd: ["es7.string.trim-right"],
87 trimLeft: ["es7.string.trim-left"],
88 trimRight: ["es7.string.trim-right"],
89 trimStart: ["es7.string.trim-left"],
90 values: ArrayNatureIterators
91};
92exports.InstanceProperties = InstanceProperties;
93const StaticProperties = {
94 Array: {
95 from: ["es6.array.from", "es6.string.iterator"],
96 isArray: "es6.array.is-array",
97 of: "es6.array.of"
98 },
99 Date: {
100 now: "es6.date.now"
101 },
102 Object: {
103 assign: "es6.object.assign",
104 create: "es6.object.create",
105 defineProperty: "es6.object.define-property",
106 defineProperties: "es6.object.define-properties",
107 entries: "es7.object.entries",
108 freeze: "es6.object.freeze",
109 getOwnPropertyDescriptors: "es7.object.get-own-property-descriptors",
110 getOwnPropertySymbols: "es6.symbol",
111 is: "es6.object.is",
112 isExtensible: "es6.object.is-extensible",
113 isFrozen: "es6.object.is-frozen",
114 isSealed: "es6.object.is-sealed",
115 keys: "es6.object.keys",
116 preventExtensions: "es6.object.prevent-extensions",
117 seal: "es6.object.seal",
118 setPrototypeOf: "es6.object.set-prototype-of",
119 values: "es7.object.values"
120 },
121 Math: {
122 acosh: "es6.math.acosh",
123 asinh: "es6.math.asinh",
124 atanh: "es6.math.atanh",
125 cbrt: "es6.math.cbrt",
126 clz32: "es6.math.clz32",
127 cosh: "es6.math.cosh",
128 expm1: "es6.math.expm1",
129 fround: "es6.math.fround",
130 hypot: "es6.math.hypot",
131 imul: "es6.math.imul",
132 log1p: "es6.math.log1p",
133 log10: "es6.math.log10",
134 log2: "es6.math.log2",
135 sign: "es6.math.sign",
136 sinh: "es6.math.sinh",
137 tanh: "es6.math.tanh",
138 trunc: "es6.math.trunc"
139 },
140 String: {
141 fromCodePoint: "es6.string.from-code-point",
142 raw: "es6.string.raw"
143 },
144 Number: {
145 EPSILON: "es6.number.epsilon",
146 MIN_SAFE_INTEGER: "es6.number.min-safe-integer",
147 MAX_SAFE_INTEGER: "es6.number.max-safe-integer",
148 isFinite: "es6.number.is-finite",
149 isInteger: "es6.number.is-integer",
150 isSafeInteger: "es6.number.is-safe-integer",
151 isNaN: "es6.number.is-nan",
152 parseFloat: "es6.number.parse-float",
153 parseInt: "es6.number.parse-int"
154 },
155 Promise: {
156 all: CommonIterators,
157 race: CommonIterators
158 },
159 Reflect: {
160 apply: "es6.reflect.apply",
161 construct: "es6.reflect.construct",
162 defineProperty: "es6.reflect.define-property",
163 deleteProperty: "es6.reflect.delete-property",
164 get: "es6.reflect.get",
165 getOwnPropertyDescriptor: "es6.reflect.get-own-property-descriptor",
166 getPrototypeOf: "es6.reflect.get-prototype-of",
167 has: "es6.reflect.has",
168 isExtensible: "es6.reflect.is-extensible",
169 ownKeys: "es6.reflect.own-keys",
170 preventExtensions: "es6.reflect.prevent-extensions",
171 set: "es6.reflect.set",
172 setPrototypeOf: "es6.reflect.set-prototype-of"
173 }
174};
175exports.StaticProperties = StaticProperties;
\No newline at end of file