From 461aa8126736689cf4f71d43daf9732e8c269a26 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sun, 14 Jul 2024 23:13:36 -0400 Subject: [PATCH] Remove `@@notation` from user-facing example titles --- live-examples/js-examples/array/meta.json | 2 +- live-examples/js-examples/date/meta.json | 2 +- .../js-examples/intl/intl-prototype-@@tostringtag.js | 4 ---- live-examples/js-examples/intl/meta.json | 8 +------- .../js-examples/map/map-prototype-@@tostringtag.js | 4 ---- live-examples/js-examples/map/meta.json | 8 +------- live-examples/js-examples/regexp/meta.json | 12 ++++++------ live-examples/js-examples/set/meta.json | 2 +- live-examples/js-examples/string/meta.json | 2 +- live-examples/js-examples/typedarray/meta.json | 2 +- 10 files changed, 13 insertions(+), 33 deletions(-) delete mode 100644 live-examples/js-examples/intl/intl-prototype-@@tostringtag.js delete mode 100644 live-examples/js-examples/map/map-prototype-@@tostringtag.js diff --git a/live-examples/js-examples/array/meta.json b/live-examples/js-examples/array/meta.json index cd8f8339f..8a791302e 100644 --- a/live-examples/js-examples/array/meta.json +++ b/live-examples/js-examples/array/meta.json @@ -123,7 +123,7 @@ "arrayIterator": { "exampleCode": "./live-examples/js-examples/array/array-iterator.js", "fileName": "array-prototype-@@iterator.html", - "title": "JavaScript Demo: Array.prototype[@@iterator]()", + "title": "JavaScript Demo: Array.prototype[Symbol.iterator]()", "type": "js" }, "arrayJoin": { diff --git a/live-examples/js-examples/date/meta.json b/live-examples/js-examples/date/meta.json index 88a2ab904..ce004807f 100644 --- a/live-examples/js-examples/date/meta.json +++ b/live-examples/js-examples/date/meta.json @@ -255,7 +255,7 @@ "dateToPrimitive": { "exampleCode": "./live-examples/js-examples/date/date-toprimitive.js", "fileName": "date-toprimitive.html", - "title": "JavaScript Demo: Date.prototype[@@toPrimitive]", + "title": "JavaScript Demo: Date.prototype[Symbol.toPrimitive]", "type": "js" }, "dateToString": { diff --git a/live-examples/js-examples/intl/intl-prototype-@@tostringtag.js b/live-examples/js-examples/intl/intl-prototype-@@tostringtag.js deleted file mode 100644 index 5aa3e2258..000000000 --- a/live-examples/js-examples/intl/intl-prototype-@@tostringtag.js +++ /dev/null @@ -1,4 +0,0 @@ -const intl1 = Object.prototype.toString.call(Intl); - -console.log(intl1); -// Expected output: "[object Intl]" diff --git a/live-examples/js-examples/intl/meta.json b/live-examples/js-examples/intl/meta.json index 510614ef1..d3d10d4eb 100644 --- a/live-examples/js-examples/intl/meta.json +++ b/live-examples/js-examples/intl/meta.json @@ -150,12 +150,6 @@ "title": "JavaScript Demo: Intl.NumberFormat", "type": "js" }, - "intlPrototypeToString": { - "exampleCode": "./live-examples/js-examples/intl/intl-prototype-@@tostringtag.js", - "fileName": "intl-prototype-tostringtag.html", - "title": "JavaScript Demo: Intl.prototype.toString()", - "type": "js" - }, "intlPluralRulesPrototypeResolvedOptions": { "exampleCode": "./live-examples/js-examples/intl/intl-pluralrules-prototype-resolvedoptions.js", "fileName": "intl-pluralrules-prototype-resolvedoptions.html", @@ -231,7 +225,7 @@ "segmentsPrototypeIterator": { "exampleCode": "./live-examples/js-examples/intl/segments-prototype-@@iterator.js", "fileName": "segments-prototype-@@iterator.html", - "title": "JavaScript Demo: Segments.prototype.@@iterator", + "title": "JavaScript Demo: Segments.prototype[Symbol.iterator]()", "type": "js" }, "segmentsPrototypeContaining": { diff --git a/live-examples/js-examples/map/map-prototype-@@tostringtag.js b/live-examples/js-examples/map/map-prototype-@@tostringtag.js deleted file mode 100644 index 81988ac06..000000000 --- a/live-examples/js-examples/map/map-prototype-@@tostringtag.js +++ /dev/null @@ -1,4 +0,0 @@ -const map1 = Object.prototype.toString.call(new Map()); - -console.log(map1); -// Expected output: "[object Map]" diff --git a/live-examples/js-examples/map/meta.json b/live-examples/js-examples/map/meta.json index 1aa1296aa..6b05cfc3b 100644 --- a/live-examples/js-examples/map/meta.json +++ b/live-examples/js-examples/map/meta.json @@ -9,13 +9,7 @@ "mapPrototype@@Iterator": { "exampleCode": "./live-examples/js-examples/map/map-prototype-@@iterator.js", "fileName": "map-prototype-@@iterator.html", - "title": "JavaScript Demo: Map.prototype[@@iterator]()", - "type": "js" - }, - "mapPrototype@@ToStringTag": { - "exampleCode": "./live-examples/js-examples/map/map-prototype-@@tostringtag.js", - "fileName": "map-prototype-@@tostringtag.html", - "title": "JavaScript Demo: Map.prototype[@@toStringTag]", + "title": "JavaScript Demo: Map.prototype[Symbol.iterator]()", "type": "js" }, "mapPrototypeClear": { diff --git a/live-examples/js-examples/regexp/meta.json b/live-examples/js-examples/regexp/meta.json index 959e1ff39..daa710dec 100644 --- a/live-examples/js-examples/regexp/meta.json +++ b/live-examples/js-examples/regexp/meta.json @@ -21,7 +21,7 @@ "regexpGetRegExp@@Species": { "exampleCode": "./live-examples/js-examples/regexp/regexp-getregexp-@@species.js", "fileName": "regexp-getregexp-@@species.html", - "title": "JavaScript Demo: RegExp.getRegExp[@@species]", + "title": "JavaScript Demo: RegExp[Symbol.species]", "type": "js" }, "regexpGroupsBackreferences": { @@ -39,31 +39,31 @@ "regexpPrototype@@Match": { "exampleCode": "./live-examples/js-examples/regexp/regexp-prototype-@@match.js", "fileName": "regexp-prototype-@@match.html", - "title": "JavaScript Demo: RegExp.prototype[@@match]", + "title": "JavaScript Demo: RegExp.prototype[Symbol.match]()", "type": "js" }, "regexpPrototype@@MatchAll": { "exampleCode": "./live-examples/js-examples/regexp/regexp-prototype-@@matchall.js", "fileName": "regexp-prototype-@@matchall.html", - "title": "JavaScript Demo: RegExp.prototype[@@matchAll]", + "title": "JavaScript Demo: RegExp.prototype[Symbol.matchAll]()", "type": "js" }, "regexpPrototype@@Replace": { "exampleCode": "./live-examples/js-examples/regexp/regexp-prototype-@@replace.js", "fileName": "regexp-prototype-@@replace.html", - "title": "JavaScript Demo: RegExp.prototype[@@replace]", + "title": "JavaScript Demo: RegExp.prototype[SYmbol.replace]()", "type": "js" }, "regexpPrototype@@Search": { "exampleCode": "./live-examples/js-examples/regexp/regexp-prototype-@@search.js", "fileName": "regexp-prototype-@@search.html", - "title": "JavaScript Demo: RegExp.prototype[@@search]", + "title": "JavaScript Demo: RegExp.prototype[Symbol.search]()", "type": "js" }, "regexpPrototype@@Split": { "exampleCode": "./live-examples/js-examples/regexp/regexp-prototype-@@split.js", "fileName": "regexp-prototype-@@split.html", - "title": "JavaScript Demo: RegExp.prototype[@@split]", + "title": "JavaScript Demo: RegExp.prototype[Symbol.split]()", "type": "js" }, "regexpPrototypeDotAll": { diff --git a/live-examples/js-examples/set/meta.json b/live-examples/js-examples/set/meta.json index 19de106b2..5caf9ab2d 100644 --- a/live-examples/js-examples/set/meta.json +++ b/live-examples/js-examples/set/meta.json @@ -3,7 +3,7 @@ "setPrototype@@Iterator": { "exampleCode": "./live-examples/js-examples/set/set-prototype-@@iterator.js", "fileName": "set-prototype-@@iterator.html", - "title": "JavaScript Demo: Set.prototype[@@iterator]()", + "title": "JavaScript Demo: Set.prototype[Symbol.iterator]()", "type": "js" }, "setPrototypeAdd": { diff --git a/live-examples/js-examples/string/meta.json b/live-examples/js-examples/string/meta.json index 3fe5672a0..acd2164c7 100644 --- a/live-examples/js-examples/string/meta.json +++ b/live-examples/js-examples/string/meta.json @@ -63,7 +63,7 @@ "stringIterator": { "exampleCode": "./live-examples/js-examples/string/string-iterator.js", "fileName": "string-prototype-@@iterator.html", - "title": "JavaScript Demo: String.prototype[@@iterator]()", + "title": "JavaScript Demo: String.prototype[Symbol.iterator]()", "type": "js" }, "stringLastIndexOf": { diff --git a/live-examples/js-examples/typedarray/meta.json b/live-examples/js-examples/typedarray/meta.json index 4d2f5e7b4..80fceef53 100644 --- a/live-examples/js-examples/typedarray/meta.json +++ b/live-examples/js-examples/typedarray/meta.json @@ -117,7 +117,7 @@ "typedarrayIterator": { "exampleCode": "./live-examples/js-examples/typedarray/typedarray-iterator.js", "fileName": "typedarray-prototype-@@iterator.html", - "title": "JavaScript Demo: TypedArray.prototype[@@iterator]()", + "title": "JavaScript Demo: TypedArray.prototype[Symbol.iterator]()", "type": "js" }, "typedarrayJoin": {