| 1 |
const typedArrayMethods = [ |
| 2 |
"typed arrays / %TypedArray%.from", |
| 3 |
"typed arrays / %TypedArray%.of", |
| 4 |
"typed arrays / %TypedArray%.prototype.subarray", |
| 5 |
"typed arrays / %TypedArray%.prototype.join", |
| 6 |
"typed arrays / %TypedArray%.prototype.indexOf", |
| 7 |
"typed arrays / %TypedArray%.prototype.lastIndexOf", |
| 8 |
"typed arrays / %TypedArray%.prototype.slice", |
| 9 |
"typed arrays / %TypedArray%.prototype.every", |
| 10 |
"typed arrays / %TypedArray%.prototype.filter", |
| 11 |
"typed arrays / %TypedArray%.prototype.forEach", |
| 12 |
"typed arrays / %TypedArray%.prototype.map", |
| 13 |
"typed arrays / %TypedArray%.prototype.reduce", |
| 14 |
"typed arrays / %TypedArray%.prototype.reduceRight", |
| 15 |
"typed arrays / %TypedArray%.prototype.reverse", |
| 16 |
"typed arrays / %TypedArray%.prototype.some", |
| 17 |
"typed arrays / %TypedArray%.prototype.sort", |
| 18 |
"typed arrays / %TypedArray%.prototype.copyWithin", |
| 19 |
"typed arrays / %TypedArray%.prototype.find", |
| 20 |
"typed arrays / %TypedArray%.prototype.findIndex", |
| 21 |
"typed arrays / %TypedArray%.prototype.fill", |
| 22 |
"typed arrays / %TypedArray%.prototype.keys", |
| 23 |
"typed arrays / %TypedArray%.prototype.values", |
| 24 |
"typed arrays / %TypedArray%.prototype.entries", |
| 25 |
"typed arrays / %TypedArray%.prototype[Symbol.iterator]", |
| 26 |
"typed arrays / %TypedArray%[Symbol.species]", |
| 27 |
]; |
| 28 |
|
| 29 |
module.exports = { |
| 30 |
"es6.array.copy-within": |
| 31 |
"Array.prototype methods / Array.prototype.copyWithin", |
| 32 |
"es6.array.every": "Array methods / Array.prototype.every", |
| 33 |
"es6.array.fill": "Array.prototype methods / Array.prototype.fill", |
| 34 |
"es6.array.filter": { |
| 35 |
features: [ |
| 36 |
"Array methods / Array.prototype.filter", |
| 37 |
"well-known symbols / Symbol.species, Array.prototype.filter", |
| 38 |
], |
| 39 |
}, |
| 40 |
"es6.array.find": "Array.prototype methods / Array.prototype.find", |
| 41 |
"es6.array.find-index": "Array.prototype methods / Array.prototype.findIndex", |
| 42 |
"es7.array.flat-map": |
| 43 |
"Array.prototype.{flat, flatMap} / Array.prototype.flatMap", |
| 44 |
"es6.array.for-each": "Array methods / Array.prototype.forEach", |
| 45 |
"es6.array.from": "Array static methods / Array.from", |
| 46 |
"es7.array.includes": "Array.prototype.includes", |
| 47 |
"es6.array.index-of": "Array methods / Array.prototype.indexOf", |
| 48 |
"es6.array.is-array": "Array methods / Array.isArray", |
| 49 |
// "es.array.join": "", required tests for that |
| 50 |
"es6.array.iterator": { |
| 51 |
features: [ |
| 52 |
"Array.prototype methods / Array.prototype.keys", |
| 53 |
"Array.prototype methods / Array.prototype.values", |
| 54 |
"Array.prototype methods / Array.prototype.entries", |
| 55 |
], |
| 56 |
}, |
| 57 |
"es6.array.last-index-of": "Array methods / Array.prototype.lastIndexOf", |
| 58 |
"es6.array.map": { |
| 59 |
features: [ |
| 60 |
"Array methods / Array.prototype.map", |
| 61 |
"well-known symbols / Symbol.species, Array.prototype.map", |
| 62 |
], |
| 63 |
}, |
| 64 |
"es6.array.of": "Array static methods / Array.of", |
| 65 |
"es6.array.reduce": "Array methods / Array.prototype.reduce", |
| 66 |
"es6.array.reduce-right": "Array methods / Array.prototype.reduceRight", |
| 67 |
"es6.array.slice": |
| 68 |
"well-known symbols / Symbol.species, Array.prototype.slice", |
| 69 |
"es6.array.some": "Array methods / Array.prototype.some", |
| 70 |
"es6.array.sort": "Array methods / Array.prototype.sort", |
| 71 |
"es6.array.species": "Array static methods / Array[Symbol.species]", |
| 72 |
|
| 73 |
"es6.date.now": "Date methods / Date.now", |
| 74 |
"es6.date.to-iso-string": "Date methods / Date.prototype.toISOString", |
| 75 |
"es6.date.to-json": "Date methods / Date.prototype.toJSON", |
| 76 |
"es6.date.to-primitive": "Date.prototype[Symbol.toPrimitive]", |
| 77 |
"es6.date.to-string": "miscellaneous / Invalid Date", |
| 78 |
|
| 79 |
"es6.function.bind": "Function.prototype.bind", |
| 80 |
"es6.function.has-instance": "well-known symbols / Symbol.hasInstance", |
| 81 |
"es6.function.name": { |
| 82 |
features: [ |
| 83 |
'function "name" property / function statements', |
| 84 |
'function "name" property / function expressions', |
| 85 |
], |
| 86 |
}, |
| 87 |
|
| 88 |
// This is explicit to prevent Map-related proposals (like |
| 89 |
// Map.prototype.upsert) from being included |
| 90 |
"es6.map": { |
| 91 |
features: [ |
| 92 |
"Map / basic functionality", |
| 93 |
"Map / constructor arguments", |
| 94 |
"Map / constructor requires new", |
| 95 |
"Map / constructor accepts null", |
| 96 |
"Map / constructor invokes set", |
| 97 |
"Map / iterator closing", |
| 98 |
"Map / Map.prototype.add returns this", |
| 99 |
"Map / -0 key converts to +0", |
| 100 |
"Map / Map.prototype.size", |
| 101 |
"Map / Map.prototype.delete", |
| 102 |
"Map / Map.prototype.clear", |
| 103 |
"Map / Map.prototype.forEach", |
| 104 |
"Map / Map.prototype.keys", |
| 105 |
"Map / Map.prototype.values", |
| 106 |
"Map / Map.prototype.entries", |
| 107 |
"Map / Map.prototype[Symbol.iterator]", |
| 108 |
"Map / Map.prototype isn't an instance", |
| 109 |
"Map / Map iterator prototype chain", |
| 110 |
"Map / Map[Symbol.species]", |
| 111 |
], |
| 112 |
}, |
| 113 |
|
| 114 |
"es6.math.acosh": "Math methods / Math.acosh", |
| 115 |
"es6.math.asinh": "Math methods / Math.asinh", |
| 116 |
"es6.math.atanh": "Math methods / Math.atanh", |
| 117 |
"es6.math.cbrt": "Math methods / Math.cbrt", |
| 118 |
"es6.math.clz32": "Math methods / Math.clz32", |
| 119 |
"es6.math.cosh": "Math methods / Math.cosh", |
| 120 |
"es6.math.expm1": "Math methods / Math.expm1", |
| 121 |
"es6.math.fround": "Math methods / Math.fround", |
| 122 |
"es6.math.hypot": "Math methods / Math.hypot", |
| 123 |
"es6.math.imul": "Math methods / Math.imul", |
| 124 |
"es6.math.log1p": "Math methods / Math.log1p", |
| 125 |
"es6.math.log10": "Math methods / Math.log10", |
| 126 |
"es6.math.log2": "Math methods / Math.log2", |
| 127 |
"es6.math.sign": "Math methods / Math.sign", |
| 128 |
"es6.math.sinh": "Math methods / Math.sinh", |
| 129 |
"es6.math.tanh": "Math methods / Math.tanh", |
| 130 |
"es6.math.trunc": "Math methods / Math.trunc", |
| 131 |
|
| 132 |
"es6.number.constructor": { |
| 133 |
features: [ |
| 134 |
"octal and binary literals / octal supported by Number()", |
| 135 |
"octal and binary literals / binary supported by Number()", |
| 136 |
], |
| 137 |
}, |
| 138 |
"es6.number.epsilon": "Number properties / Number.EPSILON", |
| 139 |
"es6.number.is-finite": "Number properties / Number.isFinite", |
| 140 |
"es6.number.is-integer": "Number properties / Number.isInteger", |
| 141 |
"es6.number.is-nan": "Number properties / Number.isNaN", |
| 142 |
"es6.number.is-safe-integer": "Number properties / Number.isSafeInteger", |
| 143 |
"es6.number.max-safe-integer": "Number properties / Number.MAX_SAFE_INTEGER", |
| 144 |
"es6.number.min-safe-integer": "Number properties / Number.MIN_SAFE_INTEGER", |
| 145 |
"es6.number.parse-float": "Number properties / Number.parseFloat", |
| 146 |
"es6.number.parse-int": "Number properties / Number.parseInt", |
| 147 |
|
| 148 |
"es6.object.assign": { |
| 149 |
features: ["Object static methods / Object.assign", "Symbol"], |
| 150 |
}, |
| 151 |
"es6.object.create": "Object static methods / Object.create", |
| 152 |
"es7.object.define-getter": { |
| 153 |
features: [ |
| 154 |
"Object.prototype getter/setter methods / __defineGetter__", |
| 155 |
"Object.prototype getter/setter methods / __defineGetter__, symbols", |
| 156 |
"Object.prototype getter/setter methods / __defineGetter__, ToObject(this)", |
| 157 |
], |
| 158 |
}, |
| 159 |
"es7.object.define-setter": { |
| 160 |
features: [ |
| 161 |
"Object.prototype getter/setter methods / __defineSetter__", |
| 162 |
"Object.prototype getter/setter methods / __defineSetter__, symbols", |
| 163 |
"Object.prototype getter/setter methods / __defineSetter__, ToObject(this)", |
| 164 |
], |
| 165 |
}, |
| 166 |
"es6.object.define-property": "Object static methods / Object.defineProperty", |
| 167 |
"es6.object.define-properties": |
| 168 |
"Object static methods / Object.defineProperties", |
| 169 |
"es7.object.entries": "Object static methods / Object.entries", |
| 170 |
"es6.object.freeze": |
| 171 |
"Object static methods accept primitives / Object.freeze", |
| 172 |
"es6.object.get-own-property-descriptor": |
| 173 |
"Object static methods accept primitives / Object.getOwnPropertyDescriptor", |
| 174 |
"es7.object.get-own-property-descriptors": |
| 175 |
"Object static methods / Object.getOwnPropertyDescriptors", |
| 176 |
"es6.object.get-own-property-names": |
| 177 |
"Object static methods accept primitives / Object.getOwnPropertyNames", |
| 178 |
"es6.object.get-prototype-of": |
| 179 |
"Object static methods accept primitives / Object.getPrototypeOf", |
| 180 |
"es7.object.lookup-getter": { |
| 181 |
features: [ |
| 182 |
"Object.prototype getter/setter methods / __lookupGetter__", |
| 183 |
"Object.prototype getter/setter methods / __lookupGetter__, prototype chain", |
| 184 |
"Object.prototype getter/setter methods / __lookupGetter__, symbols", |
| 185 |
"Object.prototype getter/setter methods / __lookupGetter__, ToObject(this)", |
| 186 |
"Object.prototype getter/setter methods / __lookupGetter__, data properties can shadow accessors", |
| 187 |
], |
| 188 |
}, |
| 189 |
"es7.object.lookup-setter": { |
| 190 |
features: [ |
| 191 |
"Object.prototype getter/setter methods / __lookupSetter__", |
| 192 |
"Object.prototype getter/setter methods / __lookupSetter__, prototype chain", |
| 193 |
"Object.prototype getter/setter methods / __lookupSetter__, symbols", |
| 194 |
"Object.prototype getter/setter methods / __lookupSetter__, ToObject(this)", |
| 195 |
"Object.prototype getter/setter methods / __lookupSetter__, data properties can shadow accessors", |
| 196 |
], |
| 197 |
}, |
| 198 |
"es6.object.prevent-extensions": |
| 199 |
"Object static methods accept primitives / Object.preventExtensions", |
| 200 |
"es6.object.to-string": "well-known symbols / Symbol.toStringTag", |
| 201 |
"es6.object.is": "Object static methods / Object.is", |
| 202 |
"es6.object.is-frozen": |
| 203 |
"Object static methods accept primitives / Object.isFrozen", |
| 204 |
"es6.object.is-sealed": |
| 205 |
"Object static methods accept primitives / Object.isSealed", |
| 206 |
"es6.object.is-extensible": |
| 207 |
"Object static methods accept primitives / Object.isExtensible", |
| 208 |
"es6.object.keys": "Object static methods accept primitives / Object.keys", |
| 209 |
"es6.object.seal": "Object static methods accept primitives / Object.seal", |
| 210 |
"es6.object.set-prototype-of": |
| 211 |
"Object static methods / Object.setPrototypeOf", |
| 212 |
"es7.object.values": "Object static methods / Object.values", |
| 213 |
|
| 214 |
"es6.promise": { |
| 215 |
features: [ |
| 216 |
// required unhandled rejection tracking tests |
| 217 |
"Promise", |
| 218 |
"well-known symbols / Symbol.species, Promise.prototype.then", |
| 219 |
], |
| 220 |
}, |
| 221 |
"es7.promise.finally": "Promise.prototype.finally", |
| 222 |
|
| 223 |
"es6.reflect.apply": "Reflect / Reflect.apply", |
| 224 |
"es6.reflect.construct": "Reflect / Reflect.construct", |
| 225 |
"es6.reflect.define-property": "Reflect / Reflect.defineProperty", |
| 226 |
"es6.reflect.delete-property": "Reflect / Reflect.deleteProperty", |
| 227 |
"es6.reflect.get": "Reflect / Reflect.get", |
| 228 |
"es6.reflect.get-own-property-descriptor": |
| 229 |
"Reflect / Reflect.getOwnPropertyDescriptor", |
| 230 |
"es6.reflect.get-prototype-of": "Reflect / Reflect.getPrototypeOf", |
| 231 |
"es6.reflect.has": "Reflect / Reflect.has", |
| 232 |
"es6.reflect.is-extensible": "Reflect / Reflect.isExtensible", |
| 233 |
"es6.reflect.own-keys": "Reflect / Reflect.ownKeys", |
| 234 |
"es6.reflect.prevent-extensions": "Reflect / Reflect.preventExtensions", |
| 235 |
"es6.reflect.set": "Reflect / Reflect.set", |
| 236 |
"es6.reflect.set-prototype-of": "Reflect / Reflect.setPrototypeOf", |
| 237 |
|
| 238 |
"es6.regexp.constructor": { |
| 239 |
features: [ |
| 240 |
"miscellaneous / RegExp constructor can alter flags", |
| 241 |
"well-known symbols / Symbol.match, RegExp constructor", |
| 242 |
], |
| 243 |
}, |
| 244 |
"es6.regexp.flags": "RegExp.prototype properties / RegExp.prototype.flags", |
| 245 |
"es6.regexp.match": |
| 246 |
"RegExp.prototype properties / RegExp.prototype[Symbol.match]", |
| 247 |
"es6.regexp.replace": |
| 248 |
"RegExp.prototype properties / RegExp.prototype[Symbol.replace]", |
| 249 |
"es6.regexp.split": |
| 250 |
"RegExp.prototype properties / RegExp.prototype[Symbol.split]", |
| 251 |
"es6.regexp.search": |
| 252 |
"RegExp.prototype properties / RegExp.prototype[Symbol.search]", |
| 253 |
"es6.regexp.to-string": |
| 254 |
'miscellaneous / RegExp.prototype.toString generic and uses "flags" property', |
| 255 |
|
| 256 |
// This is explicit due to prevent the stage-1 Set proposals under the |
| 257 |
// category "Set methods" from being included. |
| 258 |
"es6.set": { |
| 259 |
features: [ |
| 260 |
"Set / basic functionality", |
| 261 |
"Set / constructor arguments", |
| 262 |
"Set / constructor requires new", |
| 263 |
"Set / constructor accepts null", |
| 264 |
"Set / constructor invokes add", |
| 265 |
"Set / iterator closing", |
| 266 |
"Set / Set.prototype.add returns this", |
| 267 |
"Set / -0 key converts to +0", |
| 268 |
"Set / Set.prototype.size", |
| 269 |
"Set / Set.prototype.delete", |
| 270 |
"Set / Set.prototype.clear", |
| 271 |
"Set / Set.prototype.forEach", |
| 272 |
"Set / Set.prototype.keys", |
| 273 |
"Set / Set.prototype.values", |
| 274 |
"Set / Set.prototype.entries", |
| 275 |
"Set / Set.prototype[Symbol.iterator]", |
| 276 |
"Set / Set.prototype isn't an instance", |
| 277 |
"Set / Set iterator prototype chain", |
| 278 |
"Set / Set[Symbol.species]", |
| 279 |
], |
| 280 |
}, |
| 281 |
|
| 282 |
"es6.symbol": { |
| 283 |
features: [ |
| 284 |
"Symbol", |
| 285 |
"Object static methods / Object.getOwnPropertySymbols", |
| 286 |
"well-known symbols / Symbol.hasInstance", |
| 287 |
"well-known symbols / Symbol.isConcatSpreadable", |
| 288 |
"well-known symbols / Symbol.iterator", |
| 289 |
"well-known symbols / Symbol.match", |
| 290 |
"well-known symbols / Symbol.replace", |
| 291 |
"well-known symbols / Symbol.search", |
| 292 |
"well-known symbols / Symbol.species", |
| 293 |
"well-known symbols / Symbol.split", |
| 294 |
"well-known symbols / Symbol.toPrimitive", |
| 295 |
"well-known symbols / Symbol.toStringTag", |
| 296 |
"well-known symbols / Symbol.unscopables", |
| 297 |
], |
| 298 |
}, |
| 299 |
"es7.symbol.async-iterator": "Asynchronous Iterators", |
| 300 |
|
| 301 |
"es6.string.anchor": "String.prototype HTML methods", |
| 302 |
"es6.string.big": "String.prototype HTML methods", |
| 303 |
"es6.string.blink": "String.prototype HTML methods", |
| 304 |
"es6.string.bold": "String.prototype HTML methods", |
| 305 |
"es6.string.code-point-at": |
| 306 |
"String.prototype methods / String.prototype.codePointAt", |
| 307 |
"es6.string.ends-with": |
| 308 |
"String.prototype methods / String.prototype.endsWith", |
| 309 |
"es6.string.fixed": "String.prototype HTML methods", |
| 310 |
"es6.string.fontcolor": "String.prototype HTML methods", |
| 311 |
"es6.string.fontsize": "String.prototype HTML methods", |
| 312 |
"es6.string.from-code-point": "String static methods / String.fromCodePoint", |
| 313 |
"es6.string.includes": "String.prototype methods / String.prototype.includes", |
| 314 |
"es6.string.italics": "String.prototype HTML methods", |
| 315 |
"es6.string.iterator": |
| 316 |
"String.prototype methods / String.prototype[Symbol.iterator]", |
| 317 |
"es6.string.link": "String.prototype HTML methods", |
| 318 |
// "String.prototype methods / String.prototype.normalize" not implemented |
| 319 |
"es7.string.pad-start": "String padding / String.prototype.padStart", |
| 320 |
"es7.string.pad-end": "String padding / String.prototype.padEnd", |
| 321 |
"es6.string.raw": "String static methods / String.raw", |
| 322 |
"es6.string.repeat": "String.prototype methods / String.prototype.repeat", |
| 323 |
"es6.string.small": "String.prototype HTML methods", |
| 324 |
"es6.string.starts-with": |
| 325 |
"String.prototype methods / String.prototype.startsWith", |
| 326 |
"es6.string.strike": "String.prototype HTML methods", |
| 327 |
"es6.string.sub": "String.prototype HTML methods", |
| 328 |
"es6.string.sup": "String.prototype HTML methods", |
| 329 |
"es6.string.trim": "String properties and methods / String.prototype.trim", |
| 330 |
"es7.string.trim-left": "string trimming / String.prototype.trimStart", |
| 331 |
"es7.string.trim-right": "string trimming / String.prototype.trimEnd", |
| 332 |
|
| 333 |
"es6.typed.array-buffer": "typed arrays / ArrayBuffer[Symbol.species]", |
| 334 |
"es6.typed.data-view": "typed arrays / DataView", |
| 335 |
"es6.typed.int8-array": { |
| 336 |
features: ["typed arrays / Int8Array"].concat(typedArrayMethods), |
| 337 |
}, |
| 338 |
"es6.typed.uint8-array": { |
| 339 |
features: ["typed arrays / Uint8Array"].concat(typedArrayMethods), |
| 340 |
}, |
| 341 |
"es6.typed.uint8-clamped-array": { |
| 342 |
features: ["typed arrays / Uint8ClampedArray"].concat(typedArrayMethods), |
| 343 |
}, |
| 344 |
"es6.typed.int16-array": { |
| 345 |
features: ["typed arrays / Int16Array"].concat(typedArrayMethods), |
| 346 |
}, |
| 347 |
"es6.typed.uint16-array": { |
| 348 |
features: ["typed arrays / Uint16Array"].concat(typedArrayMethods), |
| 349 |
}, |
| 350 |
"es6.typed.int32-array": { |
| 351 |
features: ["typed arrays / Int32Array"].concat(typedArrayMethods), |
| 352 |
}, |
| 353 |
"es6.typed.uint32-array": { |
| 354 |
features: ["typed arrays / Uint32Array"].concat(typedArrayMethods), |
| 355 |
}, |
| 356 |
"es6.typed.float32-array": { |
| 357 |
features: ["typed arrays / Float32Array"].concat(typedArrayMethods), |
| 358 |
}, |
| 359 |
"es6.typed.float64-array": { |
| 360 |
features: ["typed arrays / Float64Array"].concat(typedArrayMethods), |
| 361 |
}, |
| 362 |
|
| 363 |
"es6.weak-map": "WeakMap", |
| 364 |
|
| 365 |
"es6.weak-set": "WeakSet", |
| 366 |
}; |