summaryrefslogtreecommitdiff
path: root/ext/console
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-08-01 09:45:05 -0700
committerGitHub <noreply@github.com>2024-08-01 09:45:05 -0700
commit6db5f1bb6e3913381ffed206dce4a5cde14fa772 (patch)
tree4f2d1a36a37b1537b9cad59cd1f336c57f90ab0d /ext/console
parent4eda9e64e9fd6075b74742ae877281ee4a7ab155 (diff)
fix(ext/console): render properties of Intl.Locale (#24827)
Fixes #21271 --------- Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'ext/console')
-rw-r--r--ext/console/01_console.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/console/01_console.js b/ext/console/01_console.js
index cffa72d8c..6812583e0 100644
--- a/ext/console/01_console.js
+++ b/ext/console/01_console.js
@@ -792,6 +792,24 @@ function formatRaw(ctx, value, recurseTimes, typedArray, proxyDetails) {
}
} else if (
proxyDetails === null &&
+ ObjectPrototypeIsPrototypeOf(globalThis.Intl.Locale.prototype, value)
+ ) {
+ braces[0] = `${getPrefix(constructor, tag, "Intl.Locale")}{`;
+ ArrayPrototypeUnshift(
+ keys,
+ "baseName",
+ "calendar",
+ "caseFirst",
+ "collation",
+ "hourCycle",
+ "language",
+ "numberingSystem",
+ "numeric",
+ "region",
+ "script",
+ );
+ } else if (
+ proxyDetails === null &&
typeof globalThis.Temporal !== "undefined" &&
(
ObjectPrototypeIsPrototypeOf(