ladybird/Libraries/LibJS/Runtime/CommonPropertyNames.h

661 lines
30 KiB
C
Raw Permalink Normal View History

/*
* Copyright (c) 2020, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/DeprecatedFlyString.h>
#include <LibJS/Forward.h>
#include <LibJS/Runtime/PropertyKey.h>
namespace JS {
#define ENUMERATE_STANDARD_PROPERTY_NAMES(P) \
P(__proto__) \
P(__defineGetter__) \
P(__defineSetter__) \
P(__lookupGetter__) \
P(__lookupSetter__) \
P($1) \
P($2) \
P($3) \
P($4) \
P($5) \
P($6) \
P($7) \
P($8) \
P($9) \
P(Atomics) \
P(BYTES_PER_ELEMENT) \
P(BigInt) \
P(Boolean) \
P(E) \
P(EPSILON) \
P(Function) \
P(Infinity) \
P(Intl) \
P(JSON) \
P(LN10) \
P(LN2) \
P(LOG10E) \
P(LOG2E) \
P(MAX_SAFE_INTEGER) \
P(MAX_VALUE) \
P(MIN_SAFE_INTEGER) \
P(MIN_VALUE) \
P(Math) \
P(NEGATIVE_INFINITY) \
P(NaN) \
P(Now) \
P(Number) \
P(PI) \
P(POSITIVE_INFINITY) \
P(Proxy) \
P(Reflect) \
P(RegExp) \
P(SQRT1_2) \
P(SQRT2) \
P(String) \
P(Symbol) \
P(Temporal) \
P(UTC) \
P(abs) \
2020-12-08 15:22:07 +00:00
P(acos) \
P(acosh) \
P(add) \
P(adopt) \
LibJS: Add initial support for Promises Almost a year after first working on this, it's finally done: an implementation of Promises for LibJS! :^) The core functionality is working and closely following the spec [1]. I mostly took the pseudo code and transformed it into C++ - if you read and understand it, you will know how the spec implements Promises; and if you read the spec first, the code will look very familiar. Implemented functions are: - Promise() constructor - Promise.prototype.then() - Promise.prototype.catch() - Promise.prototype.finally() - Promise.resolve() - Promise.reject() For the tests I added a new function to test-js's global object, runQueuedPromiseJobs(), which calls vm.run_queued_promise_jobs(). By design, queued jobs normally only run after the script was fully executed, making it improssible to test handlers in individual test() calls by default [2]. Subsequent commits include integrations into LibWeb and js(1) - pretty-printing, running queued promise jobs when necessary. This has an unusual amount of dbgln() statements, all hidden behind the PROMISE_DEBUG flag - I'm leaving them in for now as they've been very useful while debugging this, things can get quite complex with so many asynchronously executed functions. I've not extensively explored use of these APIs for promise-based functionality in LibWeb (fetch(), Notification.requestPermission() etc.), but we'll get there in due time. [1]: https://tc39.es/ecma262/#sec-promise-objects [2]: https://tc39.es/ecma262/#sec-jobs-and-job-queues
2021-04-01 20:13:29 +00:00
P(all) \
P(allSettled) \
P(alphabet) \
P(anchor) \
LibJS: Add initial support for Promises Almost a year after first working on this, it's finally done: an implementation of Promises for LibJS! :^) The core functionality is working and closely following the spec [1]. I mostly took the pseudo code and transformed it into C++ - if you read and understand it, you will know how the spec implements Promises; and if you read the spec first, the code will look very familiar. Implemented functions are: - Promise() constructor - Promise.prototype.then() - Promise.prototype.catch() - Promise.prototype.finally() - Promise.resolve() - Promise.reject() For the tests I added a new function to test-js's global object, runQueuedPromiseJobs(), which calls vm.run_queued_promise_jobs(). By design, queued jobs normally only run after the script was fully executed, making it improssible to test handlers in individual test() calls by default [2]. Subsequent commits include integrations into LibWeb and js(1) - pretty-printing, running queued promise jobs when necessary. This has an unusual amount of dbgln() statements, all hidden behind the PROMISE_DEBUG flag - I'm leaving them in for now as they've been very useful while debugging this, things can get quite complex with so many asynchronously executed functions. I've not extensively explored use of these APIs for promise-based functionality in LibWeb (fetch(), Notification.requestPermission() etc.), but we'll get there in due time. [1]: https://tc39.es/ecma262/#sec-promise-objects [2]: https://tc39.es/ecma262/#sec-jobs-and-job-queues
2021-04-01 20:13:29 +00:00
P(any) \
P(apply) \
P(arguments) \
P(asIntN) \
P(asUintN) \
2020-12-08 15:22:07 +00:00
P(asin) \
P(asinh) \
2021-04-18 15:08:14 +00:00
P(assert) \
2021-06-12 10:35:53 +00:00
P(assign) \
P(at) \
2020-12-08 08:52:33 +00:00
P(atan) \
2020-12-28 14:34:51 +00:00
P(atan2) \
P(atanh) \
P(baseName) \
P(big) \
P(bind) \
P(blank) \
P(blink) \
P(bold) \
P(buffer) \
2020-12-02 20:49:31 +00:00
P(byteLength) \
P(byteOffset) \
P(calendar) \
2024-10-25 10:47:08 +00:00
P(calendarId) \
P(calendarName) \
P(call) \
P(callee) \
P(caller) \
P(caseFirst) \
P(cause) \
P(cbrt) \
P(ceil) \
P(charAt) \
P(charCodeAt) \
P(cleanupSome) \
P(clear) \
P(clz32) \
P(codePointAt) \
P(collation) \
P(compactDisplay) \
P(compareExchange) \
P(compile) \
P(composite) \
P(computedOffset) \
P(concat) \
P(configurable) \
P(console) \
P(construct) \
P(constructor) \
P(containing) \
2021-07-11 18:18:48 +00:00
P(compare) \
P(copyWithin) \
P(cos) \
2020-12-28 14:34:51 +00:00
P(cosh) \
P(count) \
P(countReset) \
2021-04-10 16:40:12 +00:00
P(create) \
P(currency) \
P(currencyDisplay) \
P(currencySign) \
P(dateAdd) \
P(dateFromFields) \
P(dateStyle) \
P(dateUntil) \
P(day) \
P(dayOfWeek) \
P(dayOfYear) \
P(dayPeriod) \
P(days) \
P(daysDisplay) \
P(daysInMonth) \
P(daysInWeek) \
P(daysInYear) \
P(debug) \
P(decodeURI) \
P(decodeURIComponent) \
P(defer) \
P(defineProperties) \
P(defineProperty) \
P(deleteProperty) \
2021-06-12 14:38:34 +00:00
P(deref) \
P(description) \
P(detached) \
P(difference) \
P(dir) \
P(direction) \
P(disambiguation) \
P(disposed) \
P(done) \
P(dotAll) \
P(drop) \
P(easing) \
P(encodeURI) \
P(encodeURIComponent) \
P(endsWith) \
P(entries) \
P(enumerable) \
P(epochMicroseconds) \
P(epochMilliseconds) \
P(epochNanoseconds) \
P(epochSeconds) \
P(equals) \
P(era) \
P(eraYear) \
P(error) \
2021-06-11 17:06:20 +00:00
P(errors) \
P(escape) \
P(eval) \
P(evaluate) \
P(every) \
2021-07-12 12:08:13 +00:00
P(exchange) \
P(exec) \
P(exp) \
P(expm1) \
P(fallback) \
P(fields) \
P(fill) \
P(filter) \
LibJS: Add initial support for Promises Almost a year after first working on this, it's finally done: an implementation of Promises for LibJS! :^) The core functionality is working and closely following the spec [1]. I mostly took the pseudo code and transformed it into C++ - if you read and understand it, you will know how the spec implements Promises; and if you read the spec first, the code will look very familiar. Implemented functions are: - Promise() constructor - Promise.prototype.then() - Promise.prototype.catch() - Promise.prototype.finally() - Promise.resolve() - Promise.reject() For the tests I added a new function to test-js's global object, runQueuedPromiseJobs(), which calls vm.run_queued_promise_jobs(). By design, queued jobs normally only run after the script was fully executed, making it improssible to test handlers in individual test() calls by default [2]. Subsequent commits include integrations into LibWeb and js(1) - pretty-printing, running queued promise jobs when necessary. This has an unusual amount of dbgln() statements, all hidden behind the PROMISE_DEBUG flag - I'm leaving them in for now as they've been very useful while debugging this, things can get quite complex with so many asynchronously executed functions. I've not extensively explored use of these APIs for promise-based functionality in LibWeb (fetch(), Notification.requestPermission() etc.), but we'll get there in due time. [1]: https://tc39.es/ecma262/#sec-promise-objects [2]: https://tc39.es/ecma262/#sec-jobs-and-job-queues
2021-04-01 20:13:29 +00:00
P(finally) \
P(find) \
P(findLast) \
P(findLastIndex) \
P(findIndex) \
P(firstDay) \
P(firstDayOfWeek) \
P(fixed) \
P(flags) \
2021-02-16 20:16:13 +00:00
P(flat) \
P(flatMap) \
P(floor) \
P(fontcolor) \
P(fontsize) \
P(forEach) \
P(format) \
P(formatMatcher) \
P(formatRange) \
P(formatRangeToParts) \
P(formatToParts) \
P(fractionalDigits) \
P(fractionalSecondDigits) \
P(freeze) \
P(from) \
2023-07-15 10:37:22 +00:00
P(fromAsync) \
P(fromBase64) \
P(fromCharCode) \
P(fromCodePoint) \
P(fromEntries) \
P(fromEpochMicroseconds) \
P(fromEpochMilliseconds) \
P(fromEpochNanoseconds) \
P(fromEpochSeconds) \
2024-09-01 22:37:12 +00:00
P(fromHex) \
2020-12-28 14:34:51 +00:00
P(fround) \
P(f16round) \
P(gc) \
P(get) \
P(getBigInt64) \
P(getBigUint64) \
P(getCalendars) \
P(getCanonicalLocales) \
P(getCollations) \
P(getDate) \
P(getDay) \
P(getFloat16) \
P(getFloat32) \
P(getFloat64) \
P(getFullYear) \
P(getHourCycles) \
P(getHours) \
P(getInstantFor) \
P(getInt8) \
P(getInt16) \
P(getInt32) \
P(getISOFields) \
P(getMilliseconds) \
P(getMinutes) \
P(getMonth) \
P(getNextTransition) \
P(getNumberingSystems) \
P(getOffsetNanosecondsFor) \
P(getOffsetStringFor) \
P(getOwnPropertyDescriptor) \
P(getOwnPropertyDescriptors) \
P(getOwnPropertyNames) \
P(getOwnPropertySymbols) \
P(getPlainDateTimeFor) \
P(getPossibleInstantsFor) \
P(getPreviousTransition) \
P(getPrototypeOf) \
P(getSeconds) \
P(getTextInfo) \
P(getTime) \
P(getTimezoneOffset) \
P(getTimeZones) \
P(getUint8) \
P(getUint16) \
P(getUint32) \
P(getUTCDate) \
P(getUTCDay) \
P(getUTCFullYear) \
P(getUTCHours) \
P(getUTCMilliseconds) \
P(getUTCMinutes) \
P(getUTCMonth) \
P(getUTCSeconds) \
P(getWeekInfo) \
P(getYear) \
P(global) \
P(globalThis) \
P(granularity) \
P(group) \
P(groupBy) \
P(groupCollapsed) \
P(groupEnd) \
P(groups) \
P(has) \
P(hasIndices) \
P(hasOwn) \
P(hasOwnProperty) \
P(hour) \
P(hour12) \
P(hourCycle) \
P(hours) \
P(hoursDisplay) \
P(hoursInDay) \
2020-12-28 14:34:51 +00:00
P(hypot) \
P(id) \
P(ignoreCase) \
P(ignorePunctuation) \
2020-12-28 14:34:51 +00:00
P(imul) \
P(importValue) \
P(includes) \
P(index) \
P(indexOf) \
P(indices) \
P(info) \
P(inLeapYear) \
P(input) \
P(instant) \
P(intersection) \
P(is) \
P(isArray) \
P(isDisjointFrom) \
P(isError) \
P(isExtensible) \
P(isFinite) \
P(isFrozen) \
P(isInteger) \
2021-07-12 14:35:14 +00:00
P(isLockFree) \
P(isNaN) \
P(isPrototypeOf) \
P(isSafeInteger) \
P(isSealed) \
P(isSubsetOf) \
P(isSupersetOf) \
2020-12-02 20:49:31 +00:00
P(isView) \
P(isoDay) \
P(isoHour) \
P(isoMicrosecond) \
P(isoMillisecond) \
P(isoMinute) \
P(isoMonth) \
P(isoNanosecond) \
P(isoSecond) \
P(isoYear) \
P(isWellFormed) \
P(isWordLike) \
P(italics) \
P(join) \
P(keyFor) \
P(keys) \
P(language) \
P(languageDisplay) \
P(largestUnit) \
P(lastChunkHandling) \
P(lastIndex) \
P(lastIndexOf) \
P(length) \
P(link) \
2021-07-11 15:45:21 +00:00
P(load) \
P(locale) \
P(localeCompare) \
P(localeMatcher) \
P(log) \
P(log1p) \
2020-12-28 14:34:51 +00:00
P(log2) \
P(log10) \
P(lastMatch) \
P(lastParen) \
P(leftContext) \
P(map) \
P(max) \
P(maxByteLength) \
P(maximize) \
P(mergeFields) \
P(message) \
P(microsecond) \
P(microseconds) \
P(microsecondsDisplay) \
P(millisecond) \
P(milliseconds) \
P(millisecondsDisplay) \
P(min) \
P(minimalDays) \
P(minimize) \
P(maximumFractionDigits) \
P(maximumSignificantDigits) \
P(minimumFractionDigits) \
P(minimumIntegerDigits) \
P(minimumSignificantDigits) \
P(minute) \
P(minutes) \
P(minutesDisplay) \
P(month) \
P(monthCode) \
P(monthDayFromFields) \
P(months) \
P(monthsDisplay) \
P(monthsInYear) \
P(move) \
P(multiline) \
P(name) \
P(nanosecond) \
P(nanoseconds) \
P(nanosecondsDisplay) \
P(negated) \
P(next) \
P(normalize) \
P(notation) \
P(notify) \
P(now) \
P(numberingSystem) \
P(numeric) \
P(of) \
P(offset) \
P(offsetNanoseconds) \
P(omitPadding) \
P(overflow) \
P(ownKeys) \
P(padEnd) \
P(padStart) \
P(parse) \
P(parseFloat) \
P(parseInt) \
P(pause) \
P(plainDate) \
P(plainDateISO) \
P(plainDateTime) \
P(plainDateTimeISO) \
P(plainTime) \
P(plainTimeISO) \
P(pluralCategories) \
P(pop) \
P(pow) \
P(preventExtensions) \
P(promise) \
P(propertyIsEnumerable) \
P(prototype) \
2021-06-08 20:48:43 +00:00
P(proxy) \
P(push) \
LibJS: Add initial support for Promises Almost a year after first working on this, it's finally done: an implementation of Promises for LibJS! :^) The core functionality is working and closely following the spec [1]. I mostly took the pseudo code and transformed it into C++ - if you read and understand it, you will know how the spec implements Promises; and if you read the spec first, the code will look very familiar. Implemented functions are: - Promise() constructor - Promise.prototype.then() - Promise.prototype.catch() - Promise.prototype.finally() - Promise.resolve() - Promise.reject() For the tests I added a new function to test-js's global object, runQueuedPromiseJobs(), which calls vm.run_queued_promise_jobs(). By design, queued jobs normally only run after the script was fully executed, making it improssible to test handlers in individual test() calls by default [2]. Subsequent commits include integrations into LibWeb and js(1) - pretty-printing, running queued promise jobs when necessary. This has an unusual amount of dbgln() statements, all hidden behind the PROMISE_DEBUG flag - I'm leaving them in for now as they've been very useful while debugging this, things can get quite complex with so many asynchronously executed functions. I've not extensively explored use of these APIs for promise-based functionality in LibWeb (fetch(), Notification.requestPermission() etc.), but we'll get there in due time. [1]: https://tc39.es/ecma262/#sec-promise-objects [2]: https://tc39.es/ecma262/#sec-jobs-and-job-queues
2021-04-01 20:13:29 +00:00
P(race) \
P(random) \
P(raw) \
P(read) \
P(reason) \
P(reduce) \
P(reduceRight) \
P(region) \
LibJS: Add initial support for Promises Almost a year after first working on this, it's finally done: an implementation of Promises for LibJS! :^) The core functionality is working and closely following the spec [1]. I mostly took the pseudo code and transformed it into C++ - if you read and understand it, you will know how the spec implements Promises; and if you read the spec first, the code will look very familiar. Implemented functions are: - Promise() constructor - Promise.prototype.then() - Promise.prototype.catch() - Promise.prototype.finally() - Promise.resolve() - Promise.reject() For the tests I added a new function to test-js's global object, runQueuedPromiseJobs(), which calls vm.run_queued_promise_jobs(). By design, queued jobs normally only run after the script was fully executed, making it improssible to test handlers in individual test() calls by default [2]. Subsequent commits include integrations into LibWeb and js(1) - pretty-printing, running queued promise jobs when necessary. This has an unusual amount of dbgln() statements, all hidden behind the PROMISE_DEBUG flag - I'm leaving them in for now as they've been very useful while debugging this, things can get quite complex with so many asynchronously executed functions. I've not extensively explored use of these APIs for promise-based functionality in LibWeb (fetch(), Notification.requestPermission() etc.), but we'll get there in due time. [1]: https://tc39.es/ecma262/#sec-promise-objects [2]: https://tc39.es/ecma262/#sec-jobs-and-job-queues
2021-04-01 20:13:29 +00:00
P(reject) \
P(relativeTo) \
P(repeat) \
P(resizable) \
P(resize) \
LibJS: Add initial support for Promises Almost a year after first working on this, it's finally done: an implementation of Promises for LibJS! :^) The core functionality is working and closely following the spec [1]. I mostly took the pseudo code and transformed it into C++ - if you read and understand it, you will know how the spec implements Promises; and if you read the spec first, the code will look very familiar. Implemented functions are: - Promise() constructor - Promise.prototype.then() - Promise.prototype.catch() - Promise.prototype.finally() - Promise.resolve() - Promise.reject() For the tests I added a new function to test-js's global object, runQueuedPromiseJobs(), which calls vm.run_queued_promise_jobs(). By design, queued jobs normally only run after the script was fully executed, making it improssible to test handlers in individual test() calls by default [2]. Subsequent commits include integrations into LibWeb and js(1) - pretty-printing, running queued promise jobs when necessary. This has an unusual amount of dbgln() statements, all hidden behind the PROMISE_DEBUG flag - I'm leaving them in for now as they've been very useful while debugging this, things can get quite complex with so many asynchronously executed functions. I've not extensively explored use of these APIs for promise-based functionality in LibWeb (fetch(), Notification.requestPermission() etc.), but we'll get there in due time. [1]: https://tc39.es/ecma262/#sec-promise-objects [2]: https://tc39.es/ecma262/#sec-jobs-and-job-queues
2021-04-01 20:13:29 +00:00
P(resolve) \
P(resolvedOptions) \
P(reverse) \
2021-06-08 20:48:43 +00:00
P(revocable) \
P(revoke) \
P(round) \
P(roundingIncrement) \
P(roundingMode) \
P(roundingPriority) \
P(rightContext) \
P(script) \
P(seal) \
P(second) \
P(seconds) \
P(secondsDisplay) \
P(segment) \
P(select) \
P(selectRange) \
P(sensitivity) \
P(set) \
P(setBigInt64) \
P(setBigUint64) \
2021-06-06 13:25:33 +00:00
P(setDate) \
P(setFloat16) \
P(setFloat32) \
P(setFloat64) \
P(setFromBase64) \
P(setFromHex) \
P(setFullYear) \
P(setHours) \
P(setInt8) \
P(setInt16) \
P(setInt32) \
P(setMilliseconds) \
P(setMinutes) \
2021-06-06 13:26:29 +00:00
P(setMonth) \
P(setPrototypeOf) \
P(setSeconds) \
2021-06-06 13:27:21 +00:00
P(setTime) \
P(setUint8) \
P(setUint16) \
P(setUint32) \
P(setUTCDate) \
P(setUTCFullYear) \
P(setUTCHours) \
P(setUTCMilliseconds) \
P(setUTCMinutes) \
P(setUTCMonth) \
P(setUTCSeconds) \
P(setYear) \
P(shift) \
P(sign) \
P(signDisplay) \
P(sin) \
P(since) \
2020-12-28 14:34:51 +00:00
P(sinh) \
2021-06-08 21:08:47 +00:00
P(size) \
P(slice) \
P(small) \
P(smallestUnit) \
P(some) \
P(sort) \
P(source) \
P(splice) \
P(sqrt) \
P(stack) \
P(startOfDay) \
P(startsWith) \
P(status) \
P(sticky) \
2021-07-11 18:37:54 +00:00
P(store) \
P(strike) \
P(stringify) \
P(style) \
P(sub) \
P(subarray) \
P(substr) \
P(substring) \
P(subtract) \
P(sup) \
P(suppressed) \
P(supportedLocalesOf) \
P(supportedValuesOf) \
P(symmetricDifference) \
P(table) \
P(take) \
P(tan) \
2020-12-28 14:34:51 +00:00
P(tanh) \
P(test) \
LibJS: Add initial support for Promises Almost a year after first working on this, it's finally done: an implementation of Promises for LibJS! :^) The core functionality is working and closely following the spec [1]. I mostly took the pseudo code and transformed it into C++ - if you read and understand it, you will know how the spec implements Promises; and if you read the spec first, the code will look very familiar. Implemented functions are: - Promise() constructor - Promise.prototype.then() - Promise.prototype.catch() - Promise.prototype.finally() - Promise.resolve() - Promise.reject() For the tests I added a new function to test-js's global object, runQueuedPromiseJobs(), which calls vm.run_queued_promise_jobs(). By design, queued jobs normally only run after the script was fully executed, making it improssible to test handlers in individual test() calls by default [2]. Subsequent commits include integrations into LibWeb and js(1) - pretty-printing, running queued promise jobs when necessary. This has an unusual amount of dbgln() statements, all hidden behind the PROMISE_DEBUG flag - I'm leaving them in for now as they've been very useful while debugging this, things can get quite complex with so many asynchronously executed functions. I've not extensively explored use of these APIs for promise-based functionality in LibWeb (fetch(), Notification.requestPermission() etc.), but we'll get there in due time. [1]: https://tc39.es/ecma262/#sec-promise-objects [2]: https://tc39.es/ecma262/#sec-jobs-and-job-queues
2021-04-01 20:13:29 +00:00
P(then) \
P(time) \
P(timeEnd) \
P(timeLog) \
P(timeStyle) \
P(timeZone) \
P(timeZoneName) \
P(toArray) \
P(toBase64) \
P(toDateString) \
P(toExponential) \
P(toFixed) \
P(toGMTString) \
P(toHex) \
P(toInstant) \
P(toISOString) \
P(toJSON) \
P(toLocaleDateString) \
P(toLocaleLowerCase) \
P(toLocaleString) \
P(toLocaleTimeString) \
P(toLocaleUpperCase) \
P(toLowerCase) \
P(toPlainDate) \
P(toPlainDateTime) \
P(toPlainMonthDay) \
P(toPlainTime) \
P(toPlainYearMonth) \
P(toPrecision) \
P(toReversed) \
P(toSorted) \
P(toSpliced) \
P(toString) \
P(total) \
P(toTemporalInstant) \
P(toTimeString) \
P(toUpperCase) \
P(toUTCString) \
P(toWellFormed) \
P(toZonedDateTime) \
P(toZonedDateTimeISO) \
P(trace) \
P(trailingZeroDisplay) \
P(transfer) \
P(transferToFixedLength) \
P(trim) \
P(trimEnd) \
P(trimLeft) \
P(trimRight) \
P(trimStart) \
P(trunc) \
P(type) \
P(undefined) \
P(unescape) \
P(unicode) \
P(unicodeSets) \
P(unit) \
P(unitDisplay) \
P(unregister) \
P(unshift) \
P(until) \
P(usage) \
P(use) \
P(useGrouping) \
P(value) \
P(valueOf) \
P(values) \
P(wait) \
P(waitAsync) \
P(warn) \
P(weekOfYear) \
P(weekday) \
P(weekend) \
P(weeks) \
P(weeksDisplay) \
P(with) \
P(withCalendar) \
P(withPlainDate) \
P(withPlainTime) \
P(withResolvers) \
P(withTimeZone) \
P(writable) \
P(written) \
P(year) \
P(yearMonthFromFields) \
P(yearOfWeek) \
P(years) \
P(yearsDisplay) \
P(zonedDateTime) \
P(zonedDateTimeISO)
struct CommonPropertyNames {
PropertyKey and_ { "and", PropertyKey::StringMayBeNumber::No };
PropertyKey catch_ { "catch", PropertyKey::StringMayBeNumber::No };
PropertyKey delete_ { "delete", PropertyKey::StringMayBeNumber::No };
PropertyKey for_ { "for", PropertyKey::StringMayBeNumber::No };
PropertyKey or_ { "or", PropertyKey::StringMayBeNumber::No };
PropertyKey register_ { "register", PropertyKey::StringMayBeNumber::No };
PropertyKey return_ { "return", PropertyKey::StringMayBeNumber::No };
PropertyKey throw_ { "throw", PropertyKey::StringMayBeNumber::No };
PropertyKey try_ { "try", PropertyKey::StringMayBeNumber::No };
2022-12-01 21:04:30 +00:00
PropertyKey union_ { "union", PropertyKey::StringMayBeNumber::No };
PropertyKey xor_ { "xor", PropertyKey::StringMayBeNumber::No };
PropertyKey inputAlias { "$_", PropertyKey::StringMayBeNumber::No };
PropertyKey lastMatchAlias { "$&", PropertyKey::StringMayBeNumber::No };
PropertyKey lastParenAlias { "$+", PropertyKey::StringMayBeNumber::No };
PropertyKey leftContextAlias { "$`", PropertyKey::StringMayBeNumber::No };
PropertyKey rightContextAlias { "$'", PropertyKey::StringMayBeNumber::No };
#define __ENUMERATE(x) PropertyKey x { #x, PropertyKey::StringMayBeNumber::No };
ENUMERATE_STANDARD_PROPERTY_NAMES(__ENUMERATE)
#undef __ENUMERATE
#define __JS_ENUMERATE(x, a, b, c, t) PropertyKey x { #x, PropertyKey::StringMayBeNumber::No };
JS_ENUMERATE_BUILTIN_TYPES
#undef __JS_ENUMERATE
#define __JS_ENUMERATE(x, a, b, c) PropertyKey x { #x, PropertyKey::StringMayBeNumber::No };
JS_ENUMERATE_INTL_OBJECTS
#undef __JS_ENUMERATE
#define __JS_ENUMERATE(x, a, b, c) PropertyKey x { #x, PropertyKey::StringMayBeNumber::No };
JS_ENUMERATE_TEMPORAL_OBJECTS
#undef __JS_ENUMERATE
#define __JS_ENUMERATE(x, a) PropertyKey x { #x, PropertyKey::StringMayBeNumber::No };
JS_ENUMERATE_WELL_KNOWN_SYMBOLS
#undef __JS_ENUMERATE
};
}