From ab565f1a3ca2d9a320c958786fb3a9df3392ceae Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 20 Sep 2021 22:37:22 -0700 Subject: Fix parsing/printing unicode identifiers, switch to UTF-8 for prefilled strings, remove eagerly loading identifier_name --- integration/snippets/unicode-identifiers.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 integration/snippets/unicode-identifiers.js (limited to 'integration/snippets/unicode-identifiers.js') diff --git a/integration/snippets/unicode-identifiers.js b/integration/snippets/unicode-identifiers.js new file mode 100644 index 000000000..5b602f49b --- /dev/null +++ b/integration/snippets/unicode-identifiers.js @@ -0,0 +1,15 @@ +var ε = 1e-6, + ε2 = ε * ε, + π = Math.PI, + τ = 2 * π, + τε = τ - ε, + halfπ = π / 2, + d3_radians = π / 180, + d3_degrees = 180 / π; + +export { d3_radians }; + +export function test() { + console.assert(ε === 1e-6); + return testDone(import.meta.url); +} -- cgit v1.2.3