From 213e33fbd5b86c032f38ec3b2fa08c3398fb7a23 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 28 Sep 2017 14:52:07 -0400 Subject: [PATCH 1/3] Fix: major revision to valid and invalid numeric literal separator "sibling" characters --- src/tokenizer/index.js | 36 ++++++++++ .../numeric-separator/invalid-0/actual.js | 2 +- .../numeric-separator/invalid-1/actual.js | 2 +- .../numeric-separator/invalid-10/actual.js | 2 +- .../numeric-separator/invalid-100/actual.js | 1 + .../invalid-100/options.json | 1 + .../numeric-separator/invalid-101/actual.js | 1 + .../invalid-101/options.json | 1 + .../numeric-separator/invalid-102/actual.js | 1 + .../invalid-102/options.json | 1 + .../numeric-separator/invalid-103/actual.js | 1 + .../invalid-103/options.json | 1 + .../numeric-separator/invalid-104/actual.js | 1 + .../invalid-104/options.json | 1 + .../numeric-separator/invalid-105/actual.js | 1 + .../invalid-105/options.json | 1 + .../numeric-separator/invalid-106/actual.js | 1 + .../invalid-106/options.json | 1 + .../numeric-separator/invalid-107/actual.js | 1 + .../invalid-107/options.json | 1 + .../numeric-separator/invalid-108/actual.js | 1 + .../invalid-108/options.json | 1 + .../numeric-separator/invalid-109/actual.js | 1 + .../invalid-109/options.json | 1 + .../numeric-separator/invalid-11/actual.js | 2 +- .../numeric-separator/invalid-110/actual.js | 1 + .../invalid-110/options.json | 1 + .../numeric-separator/invalid-111/actual.js | 1 + .../invalid-111/options.json | 1 + .../numeric-separator/invalid-112/actual.js | 1 + .../invalid-112/options.json | 1 + .../numeric-separator/invalid-113/actual.js | 1 + .../invalid-113/options.json | 1 + .../numeric-separator/invalid-114/actual.js | 1 + .../invalid-114/options.json | 1 + .../numeric-separator/invalid-115/actual.js | 1 + .../invalid-115/options.json | 1 + .../numeric-separator/invalid-116/actual.js | 1 + .../invalid-116/options.json | 1 + .../numeric-separator/invalid-117/actual.js | 1 + .../invalid-117/options.json | 1 + .../numeric-separator/invalid-118/actual.js | 1 + .../invalid-118/options.json | 1 + .../numeric-separator/invalid-119/actual.js | 1 + .../invalid-119/options.json | 1 + .../numeric-separator/invalid-12/actual.js | 2 +- .../numeric-separator/invalid-120/actual.js | 1 + .../invalid-120/options.json | 1 + .../numeric-separator/invalid-121/actual.js | 1 + .../invalid-121/options.json | 1 + .../numeric-separator/invalid-122/actual.js | 1 + .../invalid-122/options.json | 1 + .../numeric-separator/invalid-123/actual.js | 1 + .../invalid-123/options.json | 1 + .../numeric-separator/invalid-124/actual.js | 1 + .../invalid-124/options.json | 1 + .../numeric-separator/invalid-125/actual.js | 1 + .../invalid-125/options.json | 1 + .../numeric-separator/invalid-126/actual.js | 1 + .../invalid-126/options.json | 1 + .../numeric-separator/invalid-127/actual.js | 1 + .../invalid-127/options.json | 1 + .../numeric-separator/invalid-128/actual.js | 1 + .../invalid-128/options.json | 1 + .../numeric-separator/invalid-129/actual.js | 1 + .../invalid-129/options.json | 1 + .../numeric-separator/invalid-13/actual.js | 2 +- .../numeric-separator/invalid-130/actual.js | 1 + .../invalid-130/options.json | 1 + .../numeric-separator/invalid-131/actual.js | 1 + .../invalid-131/options.json | 1 + .../numeric-separator/invalid-132/actual.js | 1 + .../invalid-132/options.json | 1 + .../numeric-separator/invalid-133/actual.js | 1 + .../invalid-133/options.json | 1 + .../numeric-separator/invalid-134/actual.js | 1 + .../invalid-134/options.json | 1 + .../numeric-separator/invalid-135/actual.js | 1 + .../invalid-135/options.json | 1 + .../numeric-separator/invalid-136/actual.js | 1 + .../invalid-136/options.json | 1 + .../numeric-separator/invalid-137/actual.js | 1 + .../invalid-137/options.json | 1 + .../numeric-separator/invalid-138/actual.js | 1 + .../invalid-138/options.json | 1 + .../numeric-separator/invalid-139/actual.js | 1 + .../invalid-139/options.json | 1 + .../numeric-separator/invalid-14/actual.js | 2 +- .../numeric-separator/invalid-140/actual.js | 1 + .../invalid-140/options.json | 1 + .../numeric-separator/invalid-141/actual.js | 1 + .../invalid-141/options.json | 1 + .../numeric-separator/invalid-142/actual.js | 1 + .../invalid-142/options.json | 1 + .../numeric-separator/invalid-143/actual.js | 1 + .../invalid-143/options.json | 1 + .../numeric-separator/invalid-144/actual.js | 1 + .../invalid-144/options.json | 1 + .../numeric-separator/invalid-145/actual.js | 1 + .../invalid-145/options.json | 1 + .../numeric-separator/invalid-146/actual.js | 1 + .../invalid-146/options.json | 1 + .../numeric-separator/invalid-147/actual.js | 1 + .../invalid-147/options.json | 1 + .../numeric-separator/invalid-15/actual.js | 2 +- .../numeric-separator/invalid-16/actual.js | 2 +- .../numeric-separator/invalid-17/actual.js | 2 +- .../numeric-separator/invalid-18/actual.js | 2 +- .../numeric-separator/invalid-19/actual.js | 2 +- .../numeric-separator/invalid-2/actual.js | 2 +- .../numeric-separator/invalid-20/actual.js | 2 +- .../numeric-separator/invalid-21/actual.js | 2 +- .../numeric-separator/invalid-22/actual.js | 2 +- .../numeric-separator/invalid-23/actual.js | 2 +- .../numeric-separator/invalid-24/actual.js | 2 +- .../numeric-separator/invalid-24/options.json | 2 +- .../numeric-separator/invalid-25/actual.js | 2 +- .../numeric-separator/invalid-25/options.json | 2 +- .../numeric-separator/invalid-26/actual.js | 2 +- .../numeric-separator/invalid-26/options.json | 2 +- .../numeric-separator/invalid-27/actual.js | 2 +- .../numeric-separator/invalid-27/options.json | 2 +- .../numeric-separator/invalid-28/actual.js | 1 + .../numeric-separator/invalid-28/options.json | 1 + .../numeric-separator/invalid-29/actual.js | 1 + .../numeric-separator/invalid-29/options.json | 1 + .../numeric-separator/invalid-3/actual.js | 2 +- .../numeric-separator/invalid-30/actual.js | 1 + .../numeric-separator/invalid-30/options.json | 1 + .../numeric-separator/invalid-31/actual.js | 1 + .../numeric-separator/invalid-31/options.json | 1 + .../numeric-separator/invalid-32/actual.js | 1 + .../numeric-separator/invalid-32/options.json | 1 + .../numeric-separator/invalid-33/actual.js | 1 + .../numeric-separator/invalid-33/options.json | 1 + .../numeric-separator/invalid-34/actual.js | 1 + .../numeric-separator/invalid-34/options.json | 1 + .../numeric-separator/invalid-35/actual.js | 1 + .../numeric-separator/invalid-35/options.json | 1 + .../numeric-separator/invalid-36/actual.js | 1 + .../numeric-separator/invalid-36/options.json | 1 + .../numeric-separator/invalid-37/actual.js | 1 + .../numeric-separator/invalid-37/options.json | 1 + .../numeric-separator/invalid-38/actual.js | 1 + .../numeric-separator/invalid-38/options.json | 1 + .../numeric-separator/invalid-39/actual.js | 1 + .../numeric-separator/invalid-39/options.json | 1 + .../numeric-separator/invalid-4/actual.js | 2 +- .../numeric-separator/invalid-40/actual.js | 1 + .../numeric-separator/invalid-40/options.json | 1 + .../numeric-separator/invalid-41/actual.js | 1 + .../numeric-separator/invalid-41/options.json | 1 + .../numeric-separator/invalid-42/actual.js | 1 + .../numeric-separator/invalid-42/options.json | 1 + .../numeric-separator/invalid-43/actual.js | 1 + .../numeric-separator/invalid-43/options.json | 1 + .../numeric-separator/invalid-44/actual.js | 1 + .../numeric-separator/invalid-44/options.json | 1 + .../numeric-separator/invalid-45/actual.js | 1 + .../numeric-separator/invalid-45/options.json | 1 + .../numeric-separator/invalid-46/actual.js | 1 + .../numeric-separator/invalid-46/options.json | 1 + .../numeric-separator/invalid-47/actual.js | 1 + .../numeric-separator/invalid-47/options.json | 1 + .../numeric-separator/invalid-48/actual.js | 1 + .../numeric-separator/invalid-48/options.json | 1 + .../numeric-separator/invalid-49/actual.js | 1 + .../numeric-separator/invalid-49/options.json | 1 + .../numeric-separator/invalid-5/actual.js | 2 +- .../numeric-separator/invalid-50/actual.js | 1 + .../numeric-separator/invalid-50/options.json | 1 + .../numeric-separator/invalid-51/actual.js | 1 + .../numeric-separator/invalid-51/options.json | 1 + .../numeric-separator/invalid-52/actual.js | 1 + .../numeric-separator/invalid-52/options.json | 1 + .../numeric-separator/invalid-53/actual.js | 1 + .../numeric-separator/invalid-53/options.json | 1 + .../numeric-separator/invalid-54/actual.js | 1 + .../numeric-separator/invalid-54/options.json | 1 + .../numeric-separator/invalid-55/actual.js | 1 + .../numeric-separator/invalid-55/options.json | 1 + .../numeric-separator/invalid-56/actual.js | 1 + .../numeric-separator/invalid-56/options.json | 1 + .../numeric-separator/invalid-57/actual.js | 1 + .../numeric-separator/invalid-57/options.json | 1 + .../numeric-separator/invalid-58/actual.js | 1 + .../numeric-separator/invalid-58/options.json | 1 + .../numeric-separator/invalid-59/actual.js | 1 + .../numeric-separator/invalid-59/options.json | 1 + .../numeric-separator/invalid-6/actual.js | 2 +- .../numeric-separator/invalid-60/actual.js | 1 + .../numeric-separator/invalid-60/options.json | 1 + .../numeric-separator/invalid-61/actual.js | 1 + .../numeric-separator/invalid-61/options.json | 1 + .../numeric-separator/invalid-62/actual.js | 1 + .../numeric-separator/invalid-62/options.json | 1 + .../numeric-separator/invalid-63/actual.js | 1 + .../numeric-separator/invalid-63/options.json | 1 + .../numeric-separator/invalid-64/actual.js | 1 + .../numeric-separator/invalid-64/options.json | 1 + .../numeric-separator/invalid-65/actual.js | 1 + .../numeric-separator/invalid-65/options.json | 1 + .../numeric-separator/invalid-66/actual.js | 1 + .../numeric-separator/invalid-66/options.json | 1 + .../numeric-separator/invalid-67/actual.js | 1 + .../numeric-separator/invalid-67/options.json | 1 + .../numeric-separator/invalid-68/actual.js | 1 + .../numeric-separator/invalid-68/options.json | 1 + .../numeric-separator/invalid-69/actual.js | 1 + .../numeric-separator/invalid-69/options.json | 1 + .../numeric-separator/invalid-7/actual.js | 2 +- .../numeric-separator/invalid-70/actual.js | 1 + .../numeric-separator/invalid-70/options.json | 1 + .../numeric-separator/invalid-71/actual.js | 1 + .../numeric-separator/invalid-71/options.json | 1 + .../numeric-separator/invalid-72/actual.js | 1 + .../numeric-separator/invalid-72/options.json | 1 + .../numeric-separator/invalid-73/actual.js | 1 + .../numeric-separator/invalid-73/options.json | 1 + .../numeric-separator/invalid-74/actual.js | 1 + .../numeric-separator/invalid-74/options.json | 1 + .../numeric-separator/invalid-75/actual.js | 1 + .../numeric-separator/invalid-75/options.json | 1 + .../numeric-separator/invalid-76/actual.js | 1 + .../numeric-separator/invalid-76/options.json | 1 + .../numeric-separator/invalid-77/actual.js | 1 + .../numeric-separator/invalid-77/options.json | 1 + .../numeric-separator/invalid-78/actual.js | 1 + .../numeric-separator/invalid-78/options.json | 1 + .../numeric-separator/invalid-79/actual.js | 1 + .../numeric-separator/invalid-79/options.json | 1 + .../numeric-separator/invalid-8/actual.js | 2 +- .../numeric-separator/invalid-80/actual.js | 1 + .../numeric-separator/invalid-80/options.json | 1 + .../numeric-separator/invalid-81/actual.js | 1 + .../numeric-separator/invalid-81/options.json | 1 + .../numeric-separator/invalid-82/actual.js | 1 + .../numeric-separator/invalid-82/options.json | 1 + .../numeric-separator/invalid-83/actual.js | 1 + .../numeric-separator/invalid-83/options.json | 1 + .../numeric-separator/invalid-84/actual.js | 1 + .../numeric-separator/invalid-84/options.json | 1 + .../numeric-separator/invalid-85/actual.js | 1 + .../numeric-separator/invalid-85/options.json | 1 + .../numeric-separator/invalid-86/actual.js | 1 + .../numeric-separator/invalid-86/options.json | 1 + .../numeric-separator/invalid-87/actual.js | 1 + .../numeric-separator/invalid-87/options.json | 1 + .../numeric-separator/invalid-88/actual.js | 1 + .../numeric-separator/invalid-88/options.json | 1 + .../numeric-separator/invalid-89/actual.js | 1 + .../numeric-separator/invalid-89/options.json | 1 + .../numeric-separator/invalid-9/actual.js | 2 +- .../numeric-separator/invalid-90/actual.js | 1 + .../numeric-separator/invalid-90/options.json | 1 + .../numeric-separator/invalid-91/actual.js | 1 + .../numeric-separator/invalid-91/options.json | 1 + .../numeric-separator/invalid-92/actual.js | 1 + .../numeric-separator/invalid-92/options.json | 1 + .../numeric-separator/invalid-93/actual.js | 1 + .../numeric-separator/invalid-93/options.json | 1 + .../numeric-separator/invalid-94/actual.js | 1 + .../numeric-separator/invalid-94/options.json | 1 + .../numeric-separator/invalid-95/actual.js | 1 + .../numeric-separator/invalid-95/options.json | 1 + .../numeric-separator/invalid-96/actual.js | 1 + .../numeric-separator/invalid-96/options.json | 1 + .../numeric-separator/invalid-97/actual.js | 1 + .../numeric-separator/invalid-97/options.json | 1 + .../numeric-separator/invalid-98/actual.js | 1 + .../numeric-separator/invalid-98/options.json | 1 + .../numeric-separator/invalid-99/actual.js | 1 + .../numeric-separator/invalid-99/options.json | 1 + .../numeric-separator/valid-10/actual.js | 2 +- .../numeric-separator/valid-10/expected.json | 6 +- .../numeric-separator/valid-11/actual.js | 2 +- .../numeric-separator/valid-11/expected.json | 22 +++--- .../numeric-separator/valid-12/actual.js | 2 +- .../numeric-separator/valid-12/expected.json | 22 +++--- .../numeric-separator/valid-13/actual.js | 1 + .../numeric-separator/valid-13/expected.json | 69 +++++++++++++++++++ .../numeric-separator/valid-14/actual.js | 1 + .../numeric-separator/valid-14/expected.json | 69 +++++++++++++++++++ .../numeric-separator/valid-15/actual.js | 1 + .../numeric-separator/valid-15/expected.json | 69 +++++++++++++++++++ .../numeric-separator/valid-8/actual.js | 2 +- .../numeric-separator/valid-8/expected.json | 22 +++--- .../numeric-separator/valid-9/actual.js | 2 +- .../numeric-separator/valid-9/expected.json | 22 +++--- 289 files changed, 570 insertions(+), 84 deletions(-) create mode 100644 test/fixtures/experimental/numeric-separator/invalid-100/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-100/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-101/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-101/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-102/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-102/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-103/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-103/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-104/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-104/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-105/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-105/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-106/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-106/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-107/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-107/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-108/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-108/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-109/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-109/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-110/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-110/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-111/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-111/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-112/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-112/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-113/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-113/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-114/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-114/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-115/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-115/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-116/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-116/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-117/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-117/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-118/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-118/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-119/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-119/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-120/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-120/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-121/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-121/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-122/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-122/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-123/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-123/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-124/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-124/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-125/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-125/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-126/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-126/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-127/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-127/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-128/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-128/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-129/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-129/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-130/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-130/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-131/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-131/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-132/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-132/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-133/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-133/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-134/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-134/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-135/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-135/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-136/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-136/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-137/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-137/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-138/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-138/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-139/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-139/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-140/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-140/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-141/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-141/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-142/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-142/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-143/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-143/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-144/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-144/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-145/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-145/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-146/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-146/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-147/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-147/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-28/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-28/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-29/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-29/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-30/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-30/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-31/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-31/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-32/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-32/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-33/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-33/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-34/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-34/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-35/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-35/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-36/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-36/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-37/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-37/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-38/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-38/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-39/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-39/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-40/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-40/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-41/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-41/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-42/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-42/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-43/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-43/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-44/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-44/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-45/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-45/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-46/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-46/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-47/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-47/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-48/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-48/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-49/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-49/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-50/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-50/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-51/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-51/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-52/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-52/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-53/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-53/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-54/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-54/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-55/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-55/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-56/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-56/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-57/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-57/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-58/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-58/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-59/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-59/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-60/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-60/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-61/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-61/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-62/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-62/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-63/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-63/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-64/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-64/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-65/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-65/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-66/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-66/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-67/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-67/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-68/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-68/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-69/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-69/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-70/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-70/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-71/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-71/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-72/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-72/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-73/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-73/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-74/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-74/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-75/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-75/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-76/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-76/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-77/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-77/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-78/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-78/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-79/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-79/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-80/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-80/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-81/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-81/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-82/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-82/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-83/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-83/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-84/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-84/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-85/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-85/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-86/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-86/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-87/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-87/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-88/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-88/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-89/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-89/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-90/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-90/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-91/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-91/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-92/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-92/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-93/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-93/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-94/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-94/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-95/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-95/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-96/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-96/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-97/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-97/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-98/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-98/options.json create mode 100644 test/fixtures/experimental/numeric-separator/invalid-99/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/invalid-99/options.json create mode 100644 test/fixtures/experimental/numeric-separator/valid-13/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/valid-13/expected.json create mode 100644 test/fixtures/experimental/numeric-separator/valid-14/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/valid-14/expected.json create mode 100644 test/fixtures/experimental/numeric-separator/valid-15/actual.js create mode 100644 test/fixtures/experimental/numeric-separator/valid-15/expected.json diff --git a/src/tokenizer/index.js b/src/tokenizer/index.js index ff8ce58e15..a37b43d554 100644 --- a/src/tokenizer/index.js +++ b/src/tokenizer/index.js @@ -43,6 +43,29 @@ const forbiddenNumericSeparatorSiblings = { ], }; +const allowedNumericSeparatorSiblings = { + hex: [ + // 0 - 9 + 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, + // A - F + 65, 66, 67, 68, 69, 70, + // a - f + 97, 98, 99, 100, 101, 102, + ], + dec: [ + // 0 - 9 + 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, + ], + oct: [ + // 0 - 7 + 48, 49, 50, 51, 52, 53, 54, 55, + ], + bin: [ + // 0 - 1 + 48, 49, + ], +}; + // Object type used to represent tokens. Note that normally, tokens // simply exist as properties on the parser object. This is only // used for the onToken callback and the external tokenizer. @@ -718,6 +741,15 @@ export default class Tokenizer extends LocationParser { radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct; + const allowedSiblings = + radix === 16 + ? allowedNumericSeparatorSiblings.hex + : (radix === 10 + ? allowedNumericSeparatorSiblings.dec + : (radix === 8 + ? allowedNumericSeparatorSiblings.oct + : allowedNumericSeparatorSiblings.bin)); + let total = 0; for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) { @@ -728,6 +760,10 @@ export default class Tokenizer extends LocationParser { const prev = this.input.charCodeAt(this.state.pos - 1); const next = this.input.charCodeAt(this.state.pos + 1); if (code === 95) { + if (!allowedSiblings.includes(next)) { + this.raise(this.state.pos, "Invalid or unexpected token"); + } + if ( forbiddenSiblings.indexOf(prev) > -1 || forbiddenSiblings.indexOf(next) > -1 || diff --git a/test/fixtures/experimental/numeric-separator/invalid-0/actual.js b/test/fixtures/experimental/numeric-separator/invalid-0/actual.js index c9cc894a14..4cf4ec7a2e 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-0/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-0/actual.js @@ -1 +1 @@ -1_ \ No newline at end of file +1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-1/actual.js b/test/fixtures/experimental/numeric-separator/invalid-1/actual.js index 812b799044..646a05cffa 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-1/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-1/actual.js @@ -1 +1 @@ -1_1_ \ No newline at end of file +1_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-10/actual.js b/test/fixtures/experimental/numeric-separator/invalid-10/actual.js index f650ef5da9..729f059bb8 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-10/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-10/actual.js @@ -1 +1 @@ -0x1_1_ \ No newline at end of file +0x1_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-100/actual.js b/test/fixtures/experimental/numeric-separator/invalid-100/actual.js new file mode 100644 index 0000000000..00243fe0d8 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-100/actual.js @@ -0,0 +1 @@ +(1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-100/options.json b/test/fixtures/experimental/numeric-separator/invalid-100/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-100/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-101/actual.js b/test/fixtures/experimental/numeric-separator/invalid-101/actual.js new file mode 100644 index 0000000000..452da7fa16 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-101/actual.js @@ -0,0 +1 @@ +(1_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-101/options.json b/test/fixtures/experimental/numeric-separator/invalid-101/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-101/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-102/actual.js b/test/fixtures/experimental/numeric-separator/invalid-102/actual.js new file mode 100644 index 0000000000..f98dbb93a2 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-102/actual.js @@ -0,0 +1 @@ +(1_1__) diff --git a/test/fixtures/experimental/numeric-separator/invalid-102/options.json b/test/fixtures/experimental/numeric-separator/invalid-102/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-102/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-103/actual.js b/test/fixtures/experimental/numeric-separator/invalid-103/actual.js new file mode 100644 index 0000000000..1b4adff1f9 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-103/actual.js @@ -0,0 +1 @@ +(1__1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-103/options.json b/test/fixtures/experimental/numeric-separator/invalid-103/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-103/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-104/actual.js b/test/fixtures/experimental/numeric-separator/invalid-104/actual.js new file mode 100644 index 0000000000..ba4a8e4d19 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-104/actual.js @@ -0,0 +1 @@ +(1_1_.1_1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-104/options.json b/test/fixtures/experimental/numeric-separator/invalid-104/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-104/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-105/actual.js b/test/fixtures/experimental/numeric-separator/invalid-105/actual.js new file mode 100644 index 0000000000..e5e9f31ba5 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-105/actual.js @@ -0,0 +1 @@ +(1_1._1_1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-105/options.json b/test/fixtures/experimental/numeric-separator/invalid-105/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-105/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-106/actual.js b/test/fixtures/experimental/numeric-separator/invalid-106/actual.js new file mode 100644 index 0000000000..004a565a2f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-106/actual.js @@ -0,0 +1 @@ +(1_1.1_e1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-106/options.json b/test/fixtures/experimental/numeric-separator/invalid-106/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-106/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-107/actual.js b/test/fixtures/experimental/numeric-separator/invalid-107/actual.js new file mode 100644 index 0000000000..2b802a7fca --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-107/actual.js @@ -0,0 +1 @@ +(1_1.1_E1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-107/options.json b/test/fixtures/experimental/numeric-separator/invalid-107/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-107/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-108/actual.js b/test/fixtures/experimental/numeric-separator/invalid-108/actual.js new file mode 100644 index 0000000000..9be22ccf1e --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-108/actual.js @@ -0,0 +1 @@ +(1_1.1e_1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-108/options.json b/test/fixtures/experimental/numeric-separator/invalid-108/options.json new file mode 100644 index 0000000000..badcb4c1b6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-108/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:7)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-109/actual.js b/test/fixtures/experimental/numeric-separator/invalid-109/actual.js new file mode 100644 index 0000000000..027d6e7a38 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-109/actual.js @@ -0,0 +1 @@ +(1_1.1E_1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-109/options.json b/test/fixtures/experimental/numeric-separator/invalid-109/options.json new file mode 100644 index 0000000000..badcb4c1b6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-109/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:7)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-11/actual.js b/test/fixtures/experimental/numeric-separator/invalid-11/actual.js index 256223f609..184beca157 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-11/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-11/actual.js @@ -1 +1 @@ -0xa_1_ \ No newline at end of file +0xa_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-110/actual.js b/test/fixtures/experimental/numeric-separator/invalid-110/actual.js new file mode 100644 index 0000000000..22ef3aaa89 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-110/actual.js @@ -0,0 +1 @@ +(0x1_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-110/options.json b/test/fixtures/experimental/numeric-separator/invalid-110/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-110/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-111/actual.js b/test/fixtures/experimental/numeric-separator/invalid-111/actual.js new file mode 100644 index 0000000000..dd5bc118be --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-111/actual.js @@ -0,0 +1 @@ +(0xa_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-111/options.json b/test/fixtures/experimental/numeric-separator/invalid-111/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-111/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-112/actual.js b/test/fixtures/experimental/numeric-separator/invalid-112/actual.js new file mode 100644 index 0000000000..d86277f4eb --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-112/actual.js @@ -0,0 +1 @@ +(0x_a_1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-112/options.json b/test/fixtures/experimental/numeric-separator/invalid-112/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-112/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-113/actual.js b/test/fixtures/experimental/numeric-separator/invalid-113/actual.js new file mode 100644 index 0000000000..d5e88e6e5c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-113/actual.js @@ -0,0 +1 @@ +(0x__1_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-113/options.json b/test/fixtures/experimental/numeric-separator/invalid-113/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-113/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-114/actual.js b/test/fixtures/experimental/numeric-separator/invalid-114/actual.js new file mode 100644 index 0000000000..111609f437 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-114/actual.js @@ -0,0 +1 @@ +(0x_1__1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-114/options.json b/test/fixtures/experimental/numeric-separator/invalid-114/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-114/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-115/actual.js b/test/fixtures/experimental/numeric-separator/invalid-115/actual.js new file mode 100644 index 0000000000..a7839f617c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-115/actual.js @@ -0,0 +1 @@ +(0x_1_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-115/options.json b/test/fixtures/experimental/numeric-separator/invalid-115/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-115/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-116/actual.js b/test/fixtures/experimental/numeric-separator/invalid-116/actual.js new file mode 100644 index 0000000000..0a9b46333b --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-116/actual.js @@ -0,0 +1 @@ +(0o_1_1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-116/options.json b/test/fixtures/experimental/numeric-separator/invalid-116/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-116/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-117/actual.js b/test/fixtures/experimental/numeric-separator/invalid-117/actual.js new file mode 100644 index 0000000000..62edc51223 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-117/actual.js @@ -0,0 +1 @@ +(0o_11) diff --git a/test/fixtures/experimental/numeric-separator/invalid-117/options.json b/test/fixtures/experimental/numeric-separator/invalid-117/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-117/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-118/actual.js b/test/fixtures/experimental/numeric-separator/invalid-118/actual.js new file mode 100644 index 0000000000..56bdccbabf --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-118/actual.js @@ -0,0 +1 @@ +(0o_01_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-118/options.json b/test/fixtures/experimental/numeric-separator/invalid-118/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-118/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-119/actual.js b/test/fixtures/experimental/numeric-separator/invalid-119/actual.js new file mode 100644 index 0000000000..64d26a6c3a --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-119/actual.js @@ -0,0 +1 @@ +(0b_0_1_1) diff --git a/test/fixtures/experimental/numeric-separator/invalid-119/options.json b/test/fixtures/experimental/numeric-separator/invalid-119/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-119/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-12/actual.js b/test/fixtures/experimental/numeric-separator/invalid-12/actual.js index 207475c37c..cc0a389c8e 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-12/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-12/actual.js @@ -1 +1 @@ -0x_a_1 \ No newline at end of file +0x_a_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-120/actual.js b/test/fixtures/experimental/numeric-separator/invalid-120/actual.js new file mode 100644 index 0000000000..71da83d034 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-120/actual.js @@ -0,0 +1 @@ +(0b_01_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-120/options.json b/test/fixtures/experimental/numeric-separator/invalid-120/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-120/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-121/actual.js b/test/fixtures/experimental/numeric-separator/invalid-121/actual.js new file mode 100644 index 0000000000..6f94a14ce0 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-121/actual.js @@ -0,0 +1 @@ +(0b01_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-121/options.json b/test/fixtures/experimental/numeric-separator/invalid-121/options.json new file mode 100644 index 0000000000..badcb4c1b6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-121/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:7)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-122/actual.js b/test/fixtures/experimental/numeric-separator/invalid-122/actual.js new file mode 100644 index 0000000000..e15f0035a5 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-122/actual.js @@ -0,0 +1 @@ +(0o1_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-122/options.json b/test/fixtures/experimental/numeric-separator/invalid-122/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-122/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-123/actual.js b/test/fixtures/experimental/numeric-separator/invalid-123/actual.js new file mode 100644 index 0000000000..b4937043a2 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-123/actual.js @@ -0,0 +1 @@ +(0o_1_1_) diff --git a/test/fixtures/experimental/numeric-separator/invalid-123/options.json b/test/fixtures/experimental/numeric-separator/invalid-123/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-123/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-124/actual.js b/test/fixtures/experimental/numeric-separator/invalid-124/actual.js new file mode 100644 index 0000000000..294fb811ad --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-124/actual.js @@ -0,0 +1 @@ +{1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-124/options.json b/test/fixtures/experimental/numeric-separator/invalid-124/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-124/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-125/actual.js b/test/fixtures/experimental/numeric-separator/invalid-125/actual.js new file mode 100644 index 0000000000..e84ab7afe2 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-125/actual.js @@ -0,0 +1 @@ +{1_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-125/options.json b/test/fixtures/experimental/numeric-separator/invalid-125/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-125/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-126/actual.js b/test/fixtures/experimental/numeric-separator/invalid-126/actual.js new file mode 100644 index 0000000000..574d7d3334 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-126/actual.js @@ -0,0 +1 @@ +{1_1__} diff --git a/test/fixtures/experimental/numeric-separator/invalid-126/options.json b/test/fixtures/experimental/numeric-separator/invalid-126/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-126/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-127/actual.js b/test/fixtures/experimental/numeric-separator/invalid-127/actual.js new file mode 100644 index 0000000000..ec1f85abf4 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-127/actual.js @@ -0,0 +1 @@ +{1__1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-127/options.json b/test/fixtures/experimental/numeric-separator/invalid-127/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-127/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-128/actual.js b/test/fixtures/experimental/numeric-separator/invalid-128/actual.js new file mode 100644 index 0000000000..16213a8213 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-128/actual.js @@ -0,0 +1 @@ +{1_1_.1_1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-128/options.json b/test/fixtures/experimental/numeric-separator/invalid-128/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-128/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-129/actual.js b/test/fixtures/experimental/numeric-separator/invalid-129/actual.js new file mode 100644 index 0000000000..f9384299db --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-129/actual.js @@ -0,0 +1 @@ +{1_1._1_1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-129/options.json b/test/fixtures/experimental/numeric-separator/invalid-129/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-129/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-13/actual.js b/test/fixtures/experimental/numeric-separator/invalid-13/actual.js index e8d858ceb4..72d0be54d6 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-13/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-13/actual.js @@ -1 +1 @@ -0x__1_1_ \ No newline at end of file +0x__1_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-130/actual.js b/test/fixtures/experimental/numeric-separator/invalid-130/actual.js new file mode 100644 index 0000000000..74bf8e44ac --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-130/actual.js @@ -0,0 +1 @@ +{1_1.1_e1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-130/options.json b/test/fixtures/experimental/numeric-separator/invalid-130/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-130/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-131/actual.js b/test/fixtures/experimental/numeric-separator/invalid-131/actual.js new file mode 100644 index 0000000000..1d3b62f929 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-131/actual.js @@ -0,0 +1 @@ +{1_1.1_E1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-131/options.json b/test/fixtures/experimental/numeric-separator/invalid-131/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-131/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-132/actual.js b/test/fixtures/experimental/numeric-separator/invalid-132/actual.js new file mode 100644 index 0000000000..ff34090c9e --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-132/actual.js @@ -0,0 +1 @@ +{1_1.1e_1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-132/options.json b/test/fixtures/experimental/numeric-separator/invalid-132/options.json new file mode 100644 index 0000000000..badcb4c1b6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-132/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:7)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-133/actual.js b/test/fixtures/experimental/numeric-separator/invalid-133/actual.js new file mode 100644 index 0000000000..a27d892a33 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-133/actual.js @@ -0,0 +1 @@ +{1_1.1E_1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-133/options.json b/test/fixtures/experimental/numeric-separator/invalid-133/options.json new file mode 100644 index 0000000000..badcb4c1b6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-133/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:7)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-134/actual.js b/test/fixtures/experimental/numeric-separator/invalid-134/actual.js new file mode 100644 index 0000000000..13e15e7ba8 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-134/actual.js @@ -0,0 +1 @@ +{0x1_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-134/options.json b/test/fixtures/experimental/numeric-separator/invalid-134/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-134/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-135/actual.js b/test/fixtures/experimental/numeric-separator/invalid-135/actual.js new file mode 100644 index 0000000000..70e704e98d --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-135/actual.js @@ -0,0 +1 @@ +{0xa_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-135/options.json b/test/fixtures/experimental/numeric-separator/invalid-135/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-135/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-136/actual.js b/test/fixtures/experimental/numeric-separator/invalid-136/actual.js new file mode 100644 index 0000000000..ef5d88f138 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-136/actual.js @@ -0,0 +1 @@ +{0x_a_1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-136/options.json b/test/fixtures/experimental/numeric-separator/invalid-136/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-136/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-137/actual.js b/test/fixtures/experimental/numeric-separator/invalid-137/actual.js new file mode 100644 index 0000000000..638a857884 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-137/actual.js @@ -0,0 +1 @@ +{0x__1_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-137/options.json b/test/fixtures/experimental/numeric-separator/invalid-137/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-137/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-138/actual.js b/test/fixtures/experimental/numeric-separator/invalid-138/actual.js new file mode 100644 index 0000000000..3537a49b3b --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-138/actual.js @@ -0,0 +1 @@ +{0x_1__1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-138/options.json b/test/fixtures/experimental/numeric-separator/invalid-138/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-138/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-139/actual.js b/test/fixtures/experimental/numeric-separator/invalid-139/actual.js new file mode 100644 index 0000000000..bece8150c4 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-139/actual.js @@ -0,0 +1 @@ +{0x_1_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-139/options.json b/test/fixtures/experimental/numeric-separator/invalid-139/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-139/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-14/actual.js b/test/fixtures/experimental/numeric-separator/invalid-14/actual.js index 6ebcc5c3b0..f119db41d7 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-14/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-14/actual.js @@ -1 +1 @@ -0x_1__1 \ No newline at end of file +0x_1__1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-140/actual.js b/test/fixtures/experimental/numeric-separator/invalid-140/actual.js new file mode 100644 index 0000000000..ecdf0de4ae --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-140/actual.js @@ -0,0 +1 @@ +{0o_1_1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-140/options.json b/test/fixtures/experimental/numeric-separator/invalid-140/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-140/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-141/actual.js b/test/fixtures/experimental/numeric-separator/invalid-141/actual.js new file mode 100644 index 0000000000..29540297fc --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-141/actual.js @@ -0,0 +1 @@ +{0o_11} diff --git a/test/fixtures/experimental/numeric-separator/invalid-141/options.json b/test/fixtures/experimental/numeric-separator/invalid-141/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-141/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-142/actual.js b/test/fixtures/experimental/numeric-separator/invalid-142/actual.js new file mode 100644 index 0000000000..688a112011 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-142/actual.js @@ -0,0 +1 @@ +{0o_01_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-142/options.json b/test/fixtures/experimental/numeric-separator/invalid-142/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-142/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-143/actual.js b/test/fixtures/experimental/numeric-separator/invalid-143/actual.js new file mode 100644 index 0000000000..04531c603a --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-143/actual.js @@ -0,0 +1 @@ +{0b_0_1_1} diff --git a/test/fixtures/experimental/numeric-separator/invalid-143/options.json b/test/fixtures/experimental/numeric-separator/invalid-143/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-143/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-144/actual.js b/test/fixtures/experimental/numeric-separator/invalid-144/actual.js new file mode 100644 index 0000000000..908aaa0e1e --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-144/actual.js @@ -0,0 +1 @@ +{0b_01_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-144/options.json b/test/fixtures/experimental/numeric-separator/invalid-144/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-144/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-145/actual.js b/test/fixtures/experimental/numeric-separator/invalid-145/actual.js new file mode 100644 index 0000000000..1088d9a127 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-145/actual.js @@ -0,0 +1 @@ +{0b01_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-145/options.json b/test/fixtures/experimental/numeric-separator/invalid-145/options.json new file mode 100644 index 0000000000..badcb4c1b6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-145/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:7)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-146/actual.js b/test/fixtures/experimental/numeric-separator/invalid-146/actual.js new file mode 100644 index 0000000000..37cfaa1452 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-146/actual.js @@ -0,0 +1 @@ +{0o1_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-146/options.json b/test/fixtures/experimental/numeric-separator/invalid-146/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-146/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-147/actual.js b/test/fixtures/experimental/numeric-separator/invalid-147/actual.js new file mode 100644 index 0000000000..e73e746481 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-147/actual.js @@ -0,0 +1 @@ +{0o_1_1_} diff --git a/test/fixtures/experimental/numeric-separator/invalid-147/options.json b/test/fixtures/experimental/numeric-separator/invalid-147/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-147/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-15/actual.js b/test/fixtures/experimental/numeric-separator/invalid-15/actual.js index 8c634a9b35..6186206fb1 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-15/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-15/actual.js @@ -1 +1 @@ -0x_1_1_ \ No newline at end of file +0x_1_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-16/actual.js b/test/fixtures/experimental/numeric-separator/invalid-16/actual.js index 5f57dcea0e..fa5487f05b 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-16/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-16/actual.js @@ -1 +1 @@ -0o_1_1 \ No newline at end of file +0o_1_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-17/actual.js b/test/fixtures/experimental/numeric-separator/invalid-17/actual.js index a28b7cad4f..b3cd15e681 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-17/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-17/actual.js @@ -1 +1 @@ -0o_11 \ No newline at end of file +0o_11 diff --git a/test/fixtures/experimental/numeric-separator/invalid-18/actual.js b/test/fixtures/experimental/numeric-separator/invalid-18/actual.js index 2b1b875436..521f5b6ea9 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-18/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-18/actual.js @@ -1 +1 @@ -0o_01_1_ \ No newline at end of file +0o_01_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-19/actual.js b/test/fixtures/experimental/numeric-separator/invalid-19/actual.js index da9556b3c2..a8908f160c 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-19/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-19/actual.js @@ -1 +1 @@ -0b_0_1_1 \ No newline at end of file +0b_0_1_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-2/actual.js b/test/fixtures/experimental/numeric-separator/invalid-2/actual.js index 0e5fddb35e..8eb0ba185d 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-2/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-2/actual.js @@ -1 +1 @@ -1_1__ \ No newline at end of file +1_1__ diff --git a/test/fixtures/experimental/numeric-separator/invalid-20/actual.js b/test/fixtures/experimental/numeric-separator/invalid-20/actual.js index 2562e4dd9b..bc9bff9c20 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-20/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-20/actual.js @@ -1 +1 @@ -0b_01_1_ \ No newline at end of file +0b_01_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-21/actual.js b/test/fixtures/experimental/numeric-separator/invalid-21/actual.js index 202ace50bd..cb86a18f2c 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-21/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-21/actual.js @@ -1 +1 @@ -0b01_1_ \ No newline at end of file +0b01_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-22/actual.js b/test/fixtures/experimental/numeric-separator/invalid-22/actual.js index 72b11abe72..6446031fa4 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-22/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-22/actual.js @@ -1 +1 @@ -0o1_1_ \ No newline at end of file +0o1_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-23/actual.js b/test/fixtures/experimental/numeric-separator/invalid-23/actual.js index 2de75d54ec..80d40b51ee 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-23/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-23/actual.js @@ -1 +1 @@ -0o_1_1_ \ No newline at end of file +0o_1_1_ diff --git a/test/fixtures/experimental/numeric-separator/invalid-24/actual.js b/test/fixtures/experimental/numeric-separator/invalid-24/actual.js index b31c6f7290..1481708850 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-24/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-24/actual.js @@ -1 +1 @@ -._1_1 \ No newline at end of file +._1_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-24/options.json b/test/fixtures/experimental/numeric-separator/invalid-24/options.json index e9dcc85b6f..8aa7449140 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-24/options.json +++ b/test/fixtures/experimental/numeric-separator/invalid-24/options.json @@ -1 +1 @@ -{ "throws": "Unexpected token (1:0)" } \ No newline at end of file +{ "throws": "Unexpected token (1:0)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-25/actual.js b/test/fixtures/experimental/numeric-separator/invalid-25/actual.js index 105d580ea8..44b788fff0 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-25/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-25/actual.js @@ -1 +1 @@ -0o01_8 \ No newline at end of file +0o01_8 diff --git a/test/fixtures/experimental/numeric-separator/invalid-25/options.json b/test/fixtures/experimental/numeric-separator/invalid-25/options.json index b284ab4dae..91c5decd9c 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-25/options.json +++ b/test/fixtures/experimental/numeric-separator/invalid-25/options.json @@ -1 +1 @@ -{ "throws": "Unexpected token, expected ; (1:5)" } \ No newline at end of file +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-26/actual.js b/test/fixtures/experimental/numeric-separator/invalid-26/actual.js index 0a3a15970b..c4f2e0324c 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-26/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-26/actual.js @@ -1 +1 @@ -0b2_1 \ No newline at end of file +0b2_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-26/options.json b/test/fixtures/experimental/numeric-separator/invalid-26/options.json index c9bd15c007..7f37dbb468 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-26/options.json +++ b/test/fixtures/experimental/numeric-separator/invalid-26/options.json @@ -1 +1 @@ -{ "throws": "Expected number in radix 2 (1:2)" } \ No newline at end of file +{ "throws": "Expected number in radix 2 (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-27/actual.js b/test/fixtures/experimental/numeric-separator/invalid-27/actual.js index 08352eee51..524a83f476 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-27/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-27/actual.js @@ -1 +1 @@ -0xZ_1 \ No newline at end of file +0xZ_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-27/options.json b/test/fixtures/experimental/numeric-separator/invalid-27/options.json index 7ec714f598..fab06a453d 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-27/options.json +++ b/test/fixtures/experimental/numeric-separator/invalid-27/options.json @@ -1 +1 @@ -{ "throws": "Expected number in radix 16 (1:2)" } \ No newline at end of file +{ "throws": "Expected number in radix 16 (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-28/actual.js b/test/fixtures/experimental/numeric-separator/invalid-28/actual.js new file mode 100644 index 0000000000..d1edbbc00d --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-28/actual.js @@ -0,0 +1 @@ +1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-28/options.json b/test/fixtures/experimental/numeric-separator/invalid-28/options.json new file mode 100644 index 0000000000..27e4acfa8f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-28/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:1)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-29/actual.js b/test/fixtures/experimental/numeric-separator/invalid-29/actual.js new file mode 100644 index 0000000000..7476a8b0ea --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-29/actual.js @@ -0,0 +1 @@ +1_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-29/options.json b/test/fixtures/experimental/numeric-separator/invalid-29/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-29/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-3/actual.js b/test/fixtures/experimental/numeric-separator/invalid-3/actual.js index 6873b31a70..edbcd1dde4 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-3/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-3/actual.js @@ -1 +1 @@ -1__1 \ No newline at end of file +1__1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-30/actual.js b/test/fixtures/experimental/numeric-separator/invalid-30/actual.js new file mode 100644 index 0000000000..119479c08e --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-30/actual.js @@ -0,0 +1 @@ +1_1__; diff --git a/test/fixtures/experimental/numeric-separator/invalid-30/options.json b/test/fixtures/experimental/numeric-separator/invalid-30/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-30/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-31/actual.js b/test/fixtures/experimental/numeric-separator/invalid-31/actual.js new file mode 100644 index 0000000000..df33eb8e37 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-31/actual.js @@ -0,0 +1 @@ +1__1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-31/options.json b/test/fixtures/experimental/numeric-separator/invalid-31/options.json new file mode 100644 index 0000000000..27e4acfa8f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-31/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:1)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-32/actual.js b/test/fixtures/experimental/numeric-separator/invalid-32/actual.js new file mode 100644 index 0000000000..48a1665b3b --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-32/actual.js @@ -0,0 +1 @@ +1_1_.1_1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-32/options.json b/test/fixtures/experimental/numeric-separator/invalid-32/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-32/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-33/actual.js b/test/fixtures/experimental/numeric-separator/invalid-33/actual.js new file mode 100644 index 0000000000..437b92bc6f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-33/actual.js @@ -0,0 +1 @@ +1_1._1_1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-33/options.json b/test/fixtures/experimental/numeric-separator/invalid-33/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-33/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-34/actual.js b/test/fixtures/experimental/numeric-separator/invalid-34/actual.js new file mode 100644 index 0000000000..9c954ccd8d --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-34/actual.js @@ -0,0 +1 @@ +1_1.1_e1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-34/options.json b/test/fixtures/experimental/numeric-separator/invalid-34/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-34/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-35/actual.js b/test/fixtures/experimental/numeric-separator/invalid-35/actual.js new file mode 100644 index 0000000000..5a75b5f63b --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-35/actual.js @@ -0,0 +1 @@ +1_1.1_E1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-35/options.json b/test/fixtures/experimental/numeric-separator/invalid-35/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-35/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-36/actual.js b/test/fixtures/experimental/numeric-separator/invalid-36/actual.js new file mode 100644 index 0000000000..22c0406461 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-36/actual.js @@ -0,0 +1 @@ +1_1.1e_1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-36/options.json b/test/fixtures/experimental/numeric-separator/invalid-36/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-36/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-37/actual.js b/test/fixtures/experimental/numeric-separator/invalid-37/actual.js new file mode 100644 index 0000000000..0136a28e89 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-37/actual.js @@ -0,0 +1 @@ +1_1.1E_1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-37/options.json b/test/fixtures/experimental/numeric-separator/invalid-37/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-37/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-38/actual.js b/test/fixtures/experimental/numeric-separator/invalid-38/actual.js new file mode 100644 index 0000000000..d04c0fd0dd --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-38/actual.js @@ -0,0 +1 @@ +0x1_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-38/options.json b/test/fixtures/experimental/numeric-separator/invalid-38/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-38/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-39/actual.js b/test/fixtures/experimental/numeric-separator/invalid-39/actual.js new file mode 100644 index 0000000000..a990af5645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-39/actual.js @@ -0,0 +1 @@ +0xa_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-39/options.json b/test/fixtures/experimental/numeric-separator/invalid-39/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-39/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-4/actual.js b/test/fixtures/experimental/numeric-separator/invalid-4/actual.js index 2ba4925b82..2406f52e1e 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-4/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-4/actual.js @@ -1 +1 @@ -1_1_.1_1 \ No newline at end of file +1_1_.1_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-40/actual.js b/test/fixtures/experimental/numeric-separator/invalid-40/actual.js new file mode 100644 index 0000000000..50ece06527 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-40/actual.js @@ -0,0 +1 @@ +0x_a_1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-40/options.json b/test/fixtures/experimental/numeric-separator/invalid-40/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-40/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-41/actual.js b/test/fixtures/experimental/numeric-separator/invalid-41/actual.js new file mode 100644 index 0000000000..f253144c8e --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-41/actual.js @@ -0,0 +1 @@ +0x__1_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-41/options.json b/test/fixtures/experimental/numeric-separator/invalid-41/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-41/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-42/actual.js b/test/fixtures/experimental/numeric-separator/invalid-42/actual.js new file mode 100644 index 0000000000..4f2050c947 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-42/actual.js @@ -0,0 +1 @@ +0x_1__1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-42/options.json b/test/fixtures/experimental/numeric-separator/invalid-42/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-42/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-43/actual.js b/test/fixtures/experimental/numeric-separator/invalid-43/actual.js new file mode 100644 index 0000000000..af1e4ed8a3 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-43/actual.js @@ -0,0 +1 @@ +0x_1_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-43/options.json b/test/fixtures/experimental/numeric-separator/invalid-43/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-43/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-44/actual.js b/test/fixtures/experimental/numeric-separator/invalid-44/actual.js new file mode 100644 index 0000000000..9fb6ec39d8 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-44/actual.js @@ -0,0 +1 @@ +0o_1_1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-44/options.json b/test/fixtures/experimental/numeric-separator/invalid-44/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-44/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-45/actual.js b/test/fixtures/experimental/numeric-separator/invalid-45/actual.js new file mode 100644 index 0000000000..8979b23a59 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-45/actual.js @@ -0,0 +1 @@ +0o_11; diff --git a/test/fixtures/experimental/numeric-separator/invalid-45/options.json b/test/fixtures/experimental/numeric-separator/invalid-45/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-45/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-46/actual.js b/test/fixtures/experimental/numeric-separator/invalid-46/actual.js new file mode 100644 index 0000000000..e503cd08fa --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-46/actual.js @@ -0,0 +1 @@ +0o_01_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-46/options.json b/test/fixtures/experimental/numeric-separator/invalid-46/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-46/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-47/actual.js b/test/fixtures/experimental/numeric-separator/invalid-47/actual.js new file mode 100644 index 0000000000..6dbe21b24f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-47/actual.js @@ -0,0 +1 @@ +0b_0_1_1; diff --git a/test/fixtures/experimental/numeric-separator/invalid-47/options.json b/test/fixtures/experimental/numeric-separator/invalid-47/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-47/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-48/actual.js b/test/fixtures/experimental/numeric-separator/invalid-48/actual.js new file mode 100644 index 0000000000..af32f06e7b --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-48/actual.js @@ -0,0 +1 @@ +0b_01_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-48/options.json b/test/fixtures/experimental/numeric-separator/invalid-48/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-48/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-49/actual.js b/test/fixtures/experimental/numeric-separator/invalid-49/actual.js new file mode 100644 index 0000000000..d6753bbca9 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-49/actual.js @@ -0,0 +1 @@ +0b01_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-49/options.json b/test/fixtures/experimental/numeric-separator/invalid-49/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-49/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-5/actual.js b/test/fixtures/experimental/numeric-separator/invalid-5/actual.js index 5b9f31e521..d8551085de 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-5/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-5/actual.js @@ -1 +1 @@ -1_1._1_1 \ No newline at end of file +1_1._1_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-50/actual.js b/test/fixtures/experimental/numeric-separator/invalid-50/actual.js new file mode 100644 index 0000000000..7ec04b14df --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-50/actual.js @@ -0,0 +1 @@ +0o1_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-50/options.json b/test/fixtures/experimental/numeric-separator/invalid-50/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-50/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-51/actual.js b/test/fixtures/experimental/numeric-separator/invalid-51/actual.js new file mode 100644 index 0000000000..6c005c811d --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-51/actual.js @@ -0,0 +1 @@ +0o_1_1_; diff --git a/test/fixtures/experimental/numeric-separator/invalid-51/options.json b/test/fixtures/experimental/numeric-separator/invalid-51/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-51/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-52/actual.js b/test/fixtures/experimental/numeric-separator/invalid-52/actual.js new file mode 100644 index 0000000000..b6b4f44809 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-52/actual.js @@ -0,0 +1 @@ +1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-52/options.json b/test/fixtures/experimental/numeric-separator/invalid-52/options.json new file mode 100644 index 0000000000..27e4acfa8f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-52/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:1)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-53/actual.js b/test/fixtures/experimental/numeric-separator/invalid-53/actual.js new file mode 100644 index 0000000000..4b8047ea34 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-53/actual.js @@ -0,0 +1 @@ +1_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-53/options.json b/test/fixtures/experimental/numeric-separator/invalid-53/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-53/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-54/actual.js b/test/fixtures/experimental/numeric-separator/invalid-54/actual.js new file mode 100644 index 0000000000..cac8642d14 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-54/actual.js @@ -0,0 +1 @@ +1_1__, diff --git a/test/fixtures/experimental/numeric-separator/invalid-54/options.json b/test/fixtures/experimental/numeric-separator/invalid-54/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-54/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-55/actual.js b/test/fixtures/experimental/numeric-separator/invalid-55/actual.js new file mode 100644 index 0000000000..a9051bb2db --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-55/actual.js @@ -0,0 +1 @@ +1__1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-55/options.json b/test/fixtures/experimental/numeric-separator/invalid-55/options.json new file mode 100644 index 0000000000..27e4acfa8f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-55/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:1)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-56/actual.js b/test/fixtures/experimental/numeric-separator/invalid-56/actual.js new file mode 100644 index 0000000000..7213755d0f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-56/actual.js @@ -0,0 +1 @@ +1_1_.1_1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-56/options.json b/test/fixtures/experimental/numeric-separator/invalid-56/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-56/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-57/actual.js b/test/fixtures/experimental/numeric-separator/invalid-57/actual.js new file mode 100644 index 0000000000..db8717756d --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-57/actual.js @@ -0,0 +1 @@ +1_1._1_1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-57/options.json b/test/fixtures/experimental/numeric-separator/invalid-57/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-57/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-58/actual.js b/test/fixtures/experimental/numeric-separator/invalid-58/actual.js new file mode 100644 index 0000000000..5e5e356da9 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-58/actual.js @@ -0,0 +1 @@ +1_1.1_e1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-58/options.json b/test/fixtures/experimental/numeric-separator/invalid-58/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-58/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-59/actual.js b/test/fixtures/experimental/numeric-separator/invalid-59/actual.js new file mode 100644 index 0000000000..b07556e6d9 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-59/actual.js @@ -0,0 +1 @@ +1_1.1_E1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-59/options.json b/test/fixtures/experimental/numeric-separator/invalid-59/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-59/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-6/actual.js b/test/fixtures/experimental/numeric-separator/invalid-6/actual.js index 6527da3a34..b26368e5c4 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-6/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-6/actual.js @@ -1 +1 @@ -1_1.1_e1 \ No newline at end of file +1_1.1_e1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-60/actual.js b/test/fixtures/experimental/numeric-separator/invalid-60/actual.js new file mode 100644 index 0000000000..0186dfaccb --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-60/actual.js @@ -0,0 +1 @@ +1_1.1e_1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-60/options.json b/test/fixtures/experimental/numeric-separator/invalid-60/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-60/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-61/actual.js b/test/fixtures/experimental/numeric-separator/invalid-61/actual.js new file mode 100644 index 0000000000..85594dea30 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-61/actual.js @@ -0,0 +1 @@ +1_1.1E_1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-61/options.json b/test/fixtures/experimental/numeric-separator/invalid-61/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-61/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-62/actual.js b/test/fixtures/experimental/numeric-separator/invalid-62/actual.js new file mode 100644 index 0000000000..e0ed0c98f6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-62/actual.js @@ -0,0 +1 @@ +0x1_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-62/options.json b/test/fixtures/experimental/numeric-separator/invalid-62/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-62/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-63/actual.js b/test/fixtures/experimental/numeric-separator/invalid-63/actual.js new file mode 100644 index 0000000000..d1b793f8df --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-63/actual.js @@ -0,0 +1 @@ +0xa_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-63/options.json b/test/fixtures/experimental/numeric-separator/invalid-63/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-63/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-64/actual.js b/test/fixtures/experimental/numeric-separator/invalid-64/actual.js new file mode 100644 index 0000000000..e5543066d0 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-64/actual.js @@ -0,0 +1 @@ +0x_a_1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-64/options.json b/test/fixtures/experimental/numeric-separator/invalid-64/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-64/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-65/actual.js b/test/fixtures/experimental/numeric-separator/invalid-65/actual.js new file mode 100644 index 0000000000..68e6a0d63f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-65/actual.js @@ -0,0 +1 @@ +0x__1_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-65/options.json b/test/fixtures/experimental/numeric-separator/invalid-65/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-65/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-66/actual.js b/test/fixtures/experimental/numeric-separator/invalid-66/actual.js new file mode 100644 index 0000000000..fd959c9609 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-66/actual.js @@ -0,0 +1 @@ +0x_1__1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-66/options.json b/test/fixtures/experimental/numeric-separator/invalid-66/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-66/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-67/actual.js b/test/fixtures/experimental/numeric-separator/invalid-67/actual.js new file mode 100644 index 0000000000..dc2301a00e --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-67/actual.js @@ -0,0 +1 @@ +0x_1_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-67/options.json b/test/fixtures/experimental/numeric-separator/invalid-67/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-67/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-68/actual.js b/test/fixtures/experimental/numeric-separator/invalid-68/actual.js new file mode 100644 index 0000000000..3a7f53b8dc --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-68/actual.js @@ -0,0 +1 @@ +0o_1_1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-68/options.json b/test/fixtures/experimental/numeric-separator/invalid-68/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-68/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-69/actual.js b/test/fixtures/experimental/numeric-separator/invalid-69/actual.js new file mode 100644 index 0000000000..ed870aa937 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-69/actual.js @@ -0,0 +1 @@ +0o_11, diff --git a/test/fixtures/experimental/numeric-separator/invalid-69/options.json b/test/fixtures/experimental/numeric-separator/invalid-69/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-69/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-7/actual.js b/test/fixtures/experimental/numeric-separator/invalid-7/actual.js index a42c9013ab..a1bdebc121 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-7/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-7/actual.js @@ -1 +1 @@ -1_1.1_E1 \ No newline at end of file +1_1.1_E1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-70/actual.js b/test/fixtures/experimental/numeric-separator/invalid-70/actual.js new file mode 100644 index 0000000000..e9fcb15ff9 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-70/actual.js @@ -0,0 +1 @@ +0o_01_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-70/options.json b/test/fixtures/experimental/numeric-separator/invalid-70/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-70/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-71/actual.js b/test/fixtures/experimental/numeric-separator/invalid-71/actual.js new file mode 100644 index 0000000000..86cc54d9ed --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-71/actual.js @@ -0,0 +1 @@ +0b_0_1_1, diff --git a/test/fixtures/experimental/numeric-separator/invalid-71/options.json b/test/fixtures/experimental/numeric-separator/invalid-71/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-71/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-72/actual.js b/test/fixtures/experimental/numeric-separator/invalid-72/actual.js new file mode 100644 index 0000000000..0c52a13346 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-72/actual.js @@ -0,0 +1 @@ +0b_01_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-72/options.json b/test/fixtures/experimental/numeric-separator/invalid-72/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-72/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-73/actual.js b/test/fixtures/experimental/numeric-separator/invalid-73/actual.js new file mode 100644 index 0000000000..95c45fd025 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-73/actual.js @@ -0,0 +1 @@ +0b01_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-73/options.json b/test/fixtures/experimental/numeric-separator/invalid-73/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-73/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-74/actual.js b/test/fixtures/experimental/numeric-separator/invalid-74/actual.js new file mode 100644 index 0000000000..58ff35dd6c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-74/actual.js @@ -0,0 +1 @@ +0o1_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-74/options.json b/test/fixtures/experimental/numeric-separator/invalid-74/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-74/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-75/actual.js b/test/fixtures/experimental/numeric-separator/invalid-75/actual.js new file mode 100644 index 0000000000..bd44d425a6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-75/actual.js @@ -0,0 +1 @@ +0o_1_1_, diff --git a/test/fixtures/experimental/numeric-separator/invalid-75/options.json b/test/fixtures/experimental/numeric-separator/invalid-75/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-75/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-76/actual.js b/test/fixtures/experimental/numeric-separator/invalid-76/actual.js new file mode 100644 index 0000000000..089a126913 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-76/actual.js @@ -0,0 +1 @@ +[1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-76/options.json b/test/fixtures/experimental/numeric-separator/invalid-76/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-76/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-77/actual.js b/test/fixtures/experimental/numeric-separator/invalid-77/actual.js new file mode 100644 index 0000000000..5d5498fbd6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-77/actual.js @@ -0,0 +1 @@ +[1_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-77/options.json b/test/fixtures/experimental/numeric-separator/invalid-77/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-77/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-78/actual.js b/test/fixtures/experimental/numeric-separator/invalid-78/actual.js new file mode 100644 index 0000000000..a809c21f18 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-78/actual.js @@ -0,0 +1 @@ +[1_1__] diff --git a/test/fixtures/experimental/numeric-separator/invalid-78/options.json b/test/fixtures/experimental/numeric-separator/invalid-78/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-78/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-79/actual.js b/test/fixtures/experimental/numeric-separator/invalid-79/actual.js new file mode 100644 index 0000000000..a8de7986ca --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-79/actual.js @@ -0,0 +1 @@ +[1__1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-79/options.json b/test/fixtures/experimental/numeric-separator/invalid-79/options.json new file mode 100644 index 0000000000..8cb6bf4866 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-79/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:2)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-8/actual.js b/test/fixtures/experimental/numeric-separator/invalid-8/actual.js index 015dfb2cca..43196dc615 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-8/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-8/actual.js @@ -1 +1 @@ -1_1.1e_1 \ No newline at end of file +1_1.1e_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-80/actual.js b/test/fixtures/experimental/numeric-separator/invalid-80/actual.js new file mode 100644 index 0000000000..bb73d8dad7 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-80/actual.js @@ -0,0 +1 @@ +[1_1_.1_1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-80/options.json b/test/fixtures/experimental/numeric-separator/invalid-80/options.json new file mode 100644 index 0000000000..91c5decd9c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-80/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:4)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-81/actual.js b/test/fixtures/experimental/numeric-separator/invalid-81/actual.js new file mode 100644 index 0000000000..f0911fdd9d --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-81/actual.js @@ -0,0 +1 @@ +[1_1._1_1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-81/options.json b/test/fixtures/experimental/numeric-separator/invalid-81/options.json new file mode 100644 index 0000000000..a65e1ff322 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-81/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:5)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-82/actual.js b/test/fixtures/experimental/numeric-separator/invalid-82/actual.js new file mode 100644 index 0000000000..caef11969f --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-82/actual.js @@ -0,0 +1 @@ +[1_1.1_e1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-82/options.json b/test/fixtures/experimental/numeric-separator/invalid-82/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-82/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-83/actual.js b/test/fixtures/experimental/numeric-separator/invalid-83/actual.js new file mode 100644 index 0000000000..ca4b37c7d8 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-83/actual.js @@ -0,0 +1 @@ +[1_1.1_E1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-83/options.json b/test/fixtures/experimental/numeric-separator/invalid-83/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-83/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-84/actual.js b/test/fixtures/experimental/numeric-separator/invalid-84/actual.js new file mode 100644 index 0000000000..56d4706f08 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-84/actual.js @@ -0,0 +1 @@ +[1_1.1e_1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-84/options.json b/test/fixtures/experimental/numeric-separator/invalid-84/options.json new file mode 100644 index 0000000000..badcb4c1b6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-84/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:7)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-85/actual.js b/test/fixtures/experimental/numeric-separator/invalid-85/actual.js new file mode 100644 index 0000000000..12d308b7c9 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-85/actual.js @@ -0,0 +1 @@ +[1_1.1E_1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-85/options.json b/test/fixtures/experimental/numeric-separator/invalid-85/options.json new file mode 100644 index 0000000000..badcb4c1b6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-85/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:7)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-86/actual.js b/test/fixtures/experimental/numeric-separator/invalid-86/actual.js new file mode 100644 index 0000000000..c0fd346c1c --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-86/actual.js @@ -0,0 +1 @@ +[0x1_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-86/options.json b/test/fixtures/experimental/numeric-separator/invalid-86/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-86/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-87/actual.js b/test/fixtures/experimental/numeric-separator/invalid-87/actual.js new file mode 100644 index 0000000000..061b9ac304 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-87/actual.js @@ -0,0 +1 @@ +[0xa_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-87/options.json b/test/fixtures/experimental/numeric-separator/invalid-87/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-87/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-88/actual.js b/test/fixtures/experimental/numeric-separator/invalid-88/actual.js new file mode 100644 index 0000000000..c8ef1ccd0a --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-88/actual.js @@ -0,0 +1 @@ +[0x_a_1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-88/options.json b/test/fixtures/experimental/numeric-separator/invalid-88/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-88/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-89/actual.js b/test/fixtures/experimental/numeric-separator/invalid-89/actual.js new file mode 100644 index 0000000000..02e46beca8 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-89/actual.js @@ -0,0 +1 @@ +[0x__1_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-89/options.json b/test/fixtures/experimental/numeric-separator/invalid-89/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-89/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-9/actual.js b/test/fixtures/experimental/numeric-separator/invalid-9/actual.js index 69b401af73..21334675b0 100644 --- a/test/fixtures/experimental/numeric-separator/invalid-9/actual.js +++ b/test/fixtures/experimental/numeric-separator/invalid-9/actual.js @@ -1 +1 @@ -1_1.1E_1 \ No newline at end of file +1_1.1E_1 diff --git a/test/fixtures/experimental/numeric-separator/invalid-90/actual.js b/test/fixtures/experimental/numeric-separator/invalid-90/actual.js new file mode 100644 index 0000000000..72e3b1b787 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-90/actual.js @@ -0,0 +1 @@ +[0x_1__1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-90/options.json b/test/fixtures/experimental/numeric-separator/invalid-90/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-90/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-91/actual.js b/test/fixtures/experimental/numeric-separator/invalid-91/actual.js new file mode 100644 index 0000000000..036956f9f0 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-91/actual.js @@ -0,0 +1 @@ +[0x_1_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-91/options.json b/test/fixtures/experimental/numeric-separator/invalid-91/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-91/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-92/actual.js b/test/fixtures/experimental/numeric-separator/invalid-92/actual.js new file mode 100644 index 0000000000..47e8663ad3 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-92/actual.js @@ -0,0 +1 @@ +[0o_1_1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-92/options.json b/test/fixtures/experimental/numeric-separator/invalid-92/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-92/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-93/actual.js b/test/fixtures/experimental/numeric-separator/invalid-93/actual.js new file mode 100644 index 0000000000..bab8e86039 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-93/actual.js @@ -0,0 +1 @@ +[0o_11] diff --git a/test/fixtures/experimental/numeric-separator/invalid-93/options.json b/test/fixtures/experimental/numeric-separator/invalid-93/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-93/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-94/actual.js b/test/fixtures/experimental/numeric-separator/invalid-94/actual.js new file mode 100644 index 0000000000..e0e7a890ee --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-94/actual.js @@ -0,0 +1 @@ +[0o_01_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-94/options.json b/test/fixtures/experimental/numeric-separator/invalid-94/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-94/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-95/actual.js b/test/fixtures/experimental/numeric-separator/invalid-95/actual.js new file mode 100644 index 0000000000..3bd647faf1 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-95/actual.js @@ -0,0 +1 @@ +[0b_0_1_1] diff --git a/test/fixtures/experimental/numeric-separator/invalid-95/options.json b/test/fixtures/experimental/numeric-separator/invalid-95/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-95/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-96/actual.js b/test/fixtures/experimental/numeric-separator/invalid-96/actual.js new file mode 100644 index 0000000000..98b80105fc --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-96/actual.js @@ -0,0 +1 @@ +[0b_01_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-96/options.json b/test/fixtures/experimental/numeric-separator/invalid-96/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-96/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-97/actual.js b/test/fixtures/experimental/numeric-separator/invalid-97/actual.js new file mode 100644 index 0000000000..c86c179904 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-97/actual.js @@ -0,0 +1 @@ +[0b01_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-97/options.json b/test/fixtures/experimental/numeric-separator/invalid-97/options.json new file mode 100644 index 0000000000..badcb4c1b6 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-97/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:7)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-98/actual.js b/test/fixtures/experimental/numeric-separator/invalid-98/actual.js new file mode 100644 index 0000000000..bbb5ca5f2d --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-98/actual.js @@ -0,0 +1 @@ +[0o1_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-98/options.json b/test/fixtures/experimental/numeric-separator/invalid-98/options.json new file mode 100644 index 0000000000..9c49308645 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-98/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:6)" } diff --git a/test/fixtures/experimental/numeric-separator/invalid-99/actual.js b/test/fixtures/experimental/numeric-separator/invalid-99/actual.js new file mode 100644 index 0000000000..edb09a7708 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-99/actual.js @@ -0,0 +1 @@ +[0o_1_1_] diff --git a/test/fixtures/experimental/numeric-separator/invalid-99/options.json b/test/fixtures/experimental/numeric-separator/invalid-99/options.json new file mode 100644 index 0000000000..477511a878 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/invalid-99/options.json @@ -0,0 +1 @@ +{ "throws": "Invalid or unexpected token (1:3)" } diff --git a/test/fixtures/experimental/numeric-separator/valid-10/actual.js b/test/fixtures/experimental/numeric-separator/valid-10/actual.js index 70c7d458e9..ada481ba18 100644 --- a/test/fixtures/experimental/numeric-separator/valid-10/actual.js +++ b/test/fixtures/experimental/numeric-separator/valid-10/actual.js @@ -1 +1 @@ -0o1_1 \ No newline at end of file +0xA_b \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-10/expected.json b/test/fixtures/experimental/numeric-separator/valid-10/expected.json index 79c01565f8..6af46262ba 100644 --- a/test/fixtures/experimental/numeric-separator/valid-10/expected.json +++ b/test/fixtures/experimental/numeric-separator/valid-10/expected.json @@ -57,10 +57,10 @@ } }, "extra": { - "rawValue": 9, - "raw": "0o1_1" + "rawValue": 171, + "raw": "0xA_b" }, - "value": 9 + "value": 171 } } ], diff --git a/test/fixtures/experimental/numeric-separator/valid-11/actual.js b/test/fixtures/experimental/numeric-separator/valid-11/actual.js index a8ad08acec..b5e3efed28 100644 --- a/test/fixtures/experimental/numeric-separator/valid-11/actual.js +++ b/test/fixtures/experimental/numeric-separator/valid-11/actual.js @@ -1 +1 @@ -0o0_11 \ No newline at end of file +0x1_a_b_c_d_e_f_0 \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-11/expected.json b/test/fixtures/experimental/numeric-separator/valid-11/expected.json index 010ed236b8..08dfa9fc84 100644 --- a/test/fixtures/experimental/numeric-separator/valid-11/expected.json +++ b/test/fixtures/experimental/numeric-separator/valid-11/expected.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 6, + "end": 17, "loc": { "start": { "line": 1, @@ -9,13 +9,13 @@ }, "end": { "line": 1, - "column": 6 + "column": 17 } }, "program": { "type": "Program", "start": 0, - "end": 6, + "end": 17, "loc": { "start": { "line": 1, @@ -23,7 +23,7 @@ }, "end": { "line": 1, - "column": 6 + "column": 17 } }, "sourceType": "script", @@ -31,7 +31,7 @@ { "type": "ExpressionStatement", "start": 0, - "end": 6, + "end": 17, "loc": { "start": { "line": 1, @@ -39,13 +39,13 @@ }, "end": { "line": 1, - "column": 6 + "column": 17 } }, "expression": { "type": "NumericLiteral", "start": 0, - "end": 6, + "end": 17, "loc": { "start": { "line": 1, @@ -53,14 +53,14 @@ }, "end": { "line": 1, - "column": 6 + "column": 17 } }, "extra": { - "rawValue": 9, - "raw": "0o0_11" + "rawValue": 448585456, + "raw": "0x1_a_b_c_d_e_f_0" }, - "value": 9 + "value": 448585456 } } ], diff --git a/test/fixtures/experimental/numeric-separator/valid-12/actual.js b/test/fixtures/experimental/numeric-separator/valid-12/actual.js index 4115d0bd97..522c24653c 100644 --- a/test/fixtures/experimental/numeric-separator/valid-12/actual.js +++ b/test/fixtures/experimental/numeric-separator/valid-12/actual.js @@ -1 +1 @@ -0xBE_be_EB_eb; +0b01_1 \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-12/expected.json b/test/fixtures/experimental/numeric-separator/valid-12/expected.json index 8719155cde..9ec67ee581 100644 --- a/test/fixtures/experimental/numeric-separator/valid-12/expected.json +++ b/test/fixtures/experimental/numeric-separator/valid-12/expected.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 14, + "end": 6, "loc": { "start": { "line": 1, @@ -9,13 +9,13 @@ }, "end": { "line": 1, - "column": 14 + "column": 6 } }, "program": { "type": "Program", "start": 0, - "end": 14, + "end": 6, "loc": { "start": { "line": 1, @@ -23,7 +23,7 @@ }, "end": { "line": 1, - "column": 14 + "column": 6 } }, "sourceType": "script", @@ -31,7 +31,7 @@ { "type": "ExpressionStatement", "start": 0, - "end": 14, + "end": 6, "loc": { "start": { "line": 1, @@ -39,13 +39,13 @@ }, "end": { "line": 1, - "column": 14 + "column": 6 } }, "expression": { "type": "NumericLiteral", "start": 0, - "end": 13, + "end": 6, "loc": { "start": { "line": 1, @@ -53,14 +53,14 @@ }, "end": { "line": 1, - "column": 13 + "column": 6 } }, "extra": { - "rawValue": 3200183275, - "raw": "0xBE_be_EB_eb" + "rawValue": 3, + "raw": "0b01_1" }, - "value": 3200183275 + "value": 3 } } ], diff --git a/test/fixtures/experimental/numeric-separator/valid-13/actual.js b/test/fixtures/experimental/numeric-separator/valid-13/actual.js new file mode 100644 index 0000000000..9eed82d99e --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/valid-13/actual.js @@ -0,0 +1 @@ +0b0_1_1 \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-13/expected.json b/test/fixtures/experimental/numeric-separator/valid-13/expected.json new file mode 100644 index 0000000000..8619859fec --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/valid-13/expected.json @@ -0,0 +1,69 @@ +{ + "type": "File", + "start": 0, + "end": 7, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 7 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 7, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 7 + } + }, + "sourceType": "script", + "body": [ + { + "type": "ExpressionStatement", + "start": 0, + "end": 7, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 7 + } + }, + "expression": { + "type": "NumericLiteral", + "start": 0, + "end": 7, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 7 + } + }, + "extra": { + "rawValue": 3, + "raw": "0b0_1_1" + }, + "value": 3 + } + } + ], + "directives": [] + } +} \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-14/actual.js b/test/fixtures/experimental/numeric-separator/valid-14/actual.js new file mode 100644 index 0000000000..70c7d458e9 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/valid-14/actual.js @@ -0,0 +1 @@ +0o1_1 \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-14/expected.json b/test/fixtures/experimental/numeric-separator/valid-14/expected.json new file mode 100644 index 0000000000..79c01565f8 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/valid-14/expected.json @@ -0,0 +1,69 @@ +{ + "type": "File", + "start": 0, + "end": 5, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 5 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 5, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 5 + } + }, + "sourceType": "script", + "body": [ + { + "type": "ExpressionStatement", + "start": 0, + "end": 5, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 5 + } + }, + "expression": { + "type": "NumericLiteral", + "start": 0, + "end": 5, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 5 + } + }, + "extra": { + "rawValue": 9, + "raw": "0o1_1" + }, + "value": 9 + } + } + ], + "directives": [] + } +} \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-15/actual.js b/test/fixtures/experimental/numeric-separator/valid-15/actual.js new file mode 100644 index 0000000000..a8ad08acec --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/valid-15/actual.js @@ -0,0 +1 @@ +0o0_11 \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-15/expected.json b/test/fixtures/experimental/numeric-separator/valid-15/expected.json new file mode 100644 index 0000000000..010ed236b8 --- /dev/null +++ b/test/fixtures/experimental/numeric-separator/valid-15/expected.json @@ -0,0 +1,69 @@ +{ + "type": "File", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + }, + "sourceType": "script", + "body": [ + { + "type": "ExpressionStatement", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + }, + "expression": { + "type": "NumericLiteral", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + }, + "extra": { + "rawValue": 9, + "raw": "0o0_11" + }, + "value": 9 + } + } + ], + "directives": [] + } +} \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-8/actual.js b/test/fixtures/experimental/numeric-separator/valid-8/actual.js index 522c24653c..9b52ec26fd 100644 --- a/test/fixtures/experimental/numeric-separator/valid-8/actual.js +++ b/test/fixtures/experimental/numeric-separator/valid-8/actual.js @@ -1 +1 @@ -0b01_1 \ No newline at end of file +0x1_a_1 \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-8/expected.json b/test/fixtures/experimental/numeric-separator/valid-8/expected.json index 9ec67ee581..9c7b37a0d1 100644 --- a/test/fixtures/experimental/numeric-separator/valid-8/expected.json +++ b/test/fixtures/experimental/numeric-separator/valid-8/expected.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 6, + "end": 7, "loc": { "start": { "line": 1, @@ -9,13 +9,13 @@ }, "end": { "line": 1, - "column": 6 + "column": 7 } }, "program": { "type": "Program", "start": 0, - "end": 6, + "end": 7, "loc": { "start": { "line": 1, @@ -23,7 +23,7 @@ }, "end": { "line": 1, - "column": 6 + "column": 7 } }, "sourceType": "script", @@ -31,7 +31,7 @@ { "type": "ExpressionStatement", "start": 0, - "end": 6, + "end": 7, "loc": { "start": { "line": 1, @@ -39,13 +39,13 @@ }, "end": { "line": 1, - "column": 6 + "column": 7 } }, "expression": { "type": "NumericLiteral", "start": 0, - "end": 6, + "end": 7, "loc": { "start": { "line": 1, @@ -53,14 +53,14 @@ }, "end": { "line": 1, - "column": 6 + "column": 7 } }, "extra": { - "rawValue": 3, - "raw": "0b01_1" + "rawValue": 417, + "raw": "0x1_a_1" }, - "value": 3 + "value": 417 } } ], diff --git a/test/fixtures/experimental/numeric-separator/valid-9/actual.js b/test/fixtures/experimental/numeric-separator/valid-9/actual.js index 9eed82d99e..71d7eac9bf 100644 --- a/test/fixtures/experimental/numeric-separator/valid-9/actual.js +++ b/test/fixtures/experimental/numeric-separator/valid-9/actual.js @@ -1 +1 @@ -0b0_1_1 \ No newline at end of file +0xA_a \ No newline at end of file diff --git a/test/fixtures/experimental/numeric-separator/valid-9/expected.json b/test/fixtures/experimental/numeric-separator/valid-9/expected.json index 8619859fec..83b28d8df9 100644 --- a/test/fixtures/experimental/numeric-separator/valid-9/expected.json +++ b/test/fixtures/experimental/numeric-separator/valid-9/expected.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 7, + "end": 5, "loc": { "start": { "line": 1, @@ -9,13 +9,13 @@ }, "end": { "line": 1, - "column": 7 + "column": 5 } }, "program": { "type": "Program", "start": 0, - "end": 7, + "end": 5, "loc": { "start": { "line": 1, @@ -23,7 +23,7 @@ }, "end": { "line": 1, - "column": 7 + "column": 5 } }, "sourceType": "script", @@ -31,7 +31,7 @@ { "type": "ExpressionStatement", "start": 0, - "end": 7, + "end": 5, "loc": { "start": { "line": 1, @@ -39,13 +39,13 @@ }, "end": { "line": 1, - "column": 7 + "column": 5 } }, "expression": { "type": "NumericLiteral", "start": 0, - "end": 7, + "end": 5, "loc": { "start": { "line": 1, @@ -53,14 +53,14 @@ }, "end": { "line": 1, - "column": 7 + "column": 5 } }, "extra": { - "rawValue": 3, - "raw": "0b0_1_1" + "rawValue": 170, + "raw": "0xA_a" }, - "value": 3 + "value": 170 } } ], From 711fe77a72cf7b4944a88ca579d42d2932420198 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 28 Sep 2017 16:02:04 -0400 Subject: [PATCH 2/3] Fixup: changes per review and per travis failure --- src/tokenizer/index.js | 48 ++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/src/tokenizer/index.js b/src/tokenizer/index.js index a37b43d554..71536f1f0c 100644 --- a/src/tokenizer/index.js +++ b/src/tokenizer/index.js @@ -43,28 +43,30 @@ const forbiddenNumericSeparatorSiblings = { ], }; -const allowedNumericSeparatorSiblings = { - hex: [ - // 0 - 9 - 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, - // A - F - 65, 66, 67, 68, 69, 70, - // a - f - 97, 98, 99, 100, 101, 102, - ], - dec: [ - // 0 - 9 - 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, - ], - oct: [ - // 0 - 7 - 48, 49, 50, 51, 52, 53, 54, 55, - ], - bin: [ - // 0 - 1 - 48, 49, - ], -}; +const allowedNumericSeparatorSiblings = {}; +allowedNumericSeparatorSiblings.bin = [ + // 0 - 1 + 48, 49 +]; +allowedNumericSeparatorSiblings.oct = [ + // 0 - 7 + ...allowedNumericSeparatorSiblings.bin, + 50, 51, 52, 53, 54, 55, +]; +allowedNumericSeparatorSiblings.dec = [ + // 0 - 9 + ...allowedNumericSeparatorSiblings.oct, + 56, 57, +]; + +allowedNumericSeparatorSiblings.hex = [ + // 0 - 9, A - F, a - f, + ...allowedNumericSeparatorSiblings.dec, + // A - F + 65, 66, 67, 68, 69, 70, + // a - f + 97, 98, 99, 100, 101, 102, +]; // Object type used to represent tokens. Note that normally, tokens // simply exist as properties on the parser object. This is only @@ -760,7 +762,7 @@ export default class Tokenizer extends LocationParser { const prev = this.input.charCodeAt(this.state.pos - 1); const next = this.input.charCodeAt(this.state.pos + 1); if (code === 95) { - if (!allowedSiblings.includes(next)) { + if (allowedSiblings.indexOf(next) === -1) { this.raise(this.state.pos, "Invalid or unexpected token"); } From b7dd2cd96cfe26b8e655eaacd2e3b14a7e548e4e Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Thu, 28 Sep 2017 23:12:20 -0400 Subject: [PATCH 3/3] lint [skip ci] --- src/tokenizer/index.js | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/src/tokenizer/index.js b/src/tokenizer/index.js index 71536f1f0c..f4b9121ce9 100644 --- a/src/tokenizer/index.js +++ b/src/tokenizer/index.js @@ -46,26 +46,43 @@ const forbiddenNumericSeparatorSiblings = { const allowedNumericSeparatorSiblings = {}; allowedNumericSeparatorSiblings.bin = [ // 0 - 1 - 48, 49 + 48, + 49, ]; allowedNumericSeparatorSiblings.oct = [ // 0 - 7 ...allowedNumericSeparatorSiblings.bin, - 50, 51, 52, 53, 54, 55, + 50, + 51, + 52, + 53, + 54, + 55, ]; allowedNumericSeparatorSiblings.dec = [ // 0 - 9 ...allowedNumericSeparatorSiblings.oct, - 56, 57, + 56, + 57, ]; allowedNumericSeparatorSiblings.hex = [ // 0 - 9, A - F, a - f, ...allowedNumericSeparatorSiblings.dec, // A - F - 65, 66, 67, 68, 69, 70, + 65, + 66, + 67, + 68, + 69, + 70, // a - f - 97, 98, 99, 100, 101, 102, + 97, + 98, + 99, + 100, + 101, + 102, ]; // Object type used to represent tokens. Note that normally, tokens @@ -746,11 +763,11 @@ export default class Tokenizer extends LocationParser { const allowedSiblings = radix === 16 ? allowedNumericSeparatorSiblings.hex - : (radix === 10 - ? allowedNumericSeparatorSiblings.dec - : (radix === 8 - ? allowedNumericSeparatorSiblings.oct - : allowedNumericSeparatorSiblings.bin)); + : radix === 10 + ? allowedNumericSeparatorSiblings.dec + : radix === 8 + ? allowedNumericSeparatorSiblings.oct + : allowedNumericSeparatorSiblings.bin; let total = 0;