From 924921d7c931ba30431f54faf118b29b701ba766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Wed, 6 Apr 2022 14:57:06 +0200 Subject: [PATCH] Add failing test --- packages/babel-standalone/test/babel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/babel-standalone/test/babel.js b/packages/babel-standalone/test/babel.js index 8af895cc4149..8589d1f83a7a 100644 --- a/packages/babel-standalone/test/babel.js +++ b/packages/babel-standalone/test/babel.js @@ -256,6 +256,9 @@ const require = createRequire(import.meta.url); }), ).not.toThrow(); }); + it("#14425 - numeric separators should be parsed correctly", () => { + expect(() => Babel.transform("1_1", {})).not.toThrow(); + }); }); }, );