Skip to content

Commit 49481eb

Browse files
Meta+LibJS: Update fast-float to version 8.1.0
This release comes with a fix for a bug where certain unicode emoji characters were coerced into an integer when put into the key of an JS object, i.e. `{ "⤵️": 42 }` would become `{ "5": 42 }`. Relevant upstream PR: fastfloat/fast_float#325
1 parent 42334db commit 49481eb

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
test("unicode emojis with the low byte corresponding to the value of an ascii digit should not coerce to integers", () => {
2+
const emojis = [
3+
"ℹ",
4+
"ℹ️",
5+
"☸",
6+
"☸️",
7+
"☹",
8+
"☹️",
9+
"✳",
10+
"✳️",
11+
"✴",
12+
"✴️",
13+
"⤴",
14+
"⤴️",
15+
"⤵",
16+
"⤵️",
17+
"〰",
18+
"〰️",
19+
];
20+
for (const emoji of emojis) {
21+
const o = {};
22+
o[emoji] = 42;
23+
expect(Object.keys(o)[0]).toBe(emoji);
24+
}
25+
});

vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
},
221221
{
222222
"name": "fast-float",
223-
"version": "8.0.2#0"
223+
"version": "8.1.0#0"
224224
},
225225
{
226226
"name": "ffmpeg",

0 commit comments

Comments
 (0)