// @dynamic // Astral-plane and special-cased strings cross the boundary intact (UTF-8 // on the static side, engine UTF-16 inside): supplementary-plane case // pairs (Deseret), 1:many mappings (ß β†’ SS), context-sensitive Greek final // sigma, and split on an astral separator. const deseret = "\u{10437}\u{10437}"; const upper = deseret.toUpperCase(); console.log(upper, upper.length, upper.charCodeAt(0)); const mixed = "Ξ±πŸ˜€Ξ²πŸ˜€Ξ³"; const bits = mixed.split("πŸ˜€"); console.log(bits.length, bits.join("+"), bits[1].length); console.log("straße".toUpperCase()); console.log("ΣΊΣΞ₯ΦΟΣ".toLowerCase()); console.log("πŸ˜€!".padStart(6, "🌍").length, "aπŸ˜€bπŸ˜€".replaceAll("πŸ˜€", "🌍"));