gyosjs 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * GyosJS v0.3.1
2
+ * GyosJS v0.3.2
3
3
  * (c) 2026
4
4
  * @license MIT
5
5
  */
@@ -5189,6 +5189,10 @@
5189
5189
  const structuralElements = [];
5190
5190
  const root = elements[0];
5191
5191
  elements.forEach(el => {
5192
+ // Await branches are detached and parsed only after their alias scope exists.
5193
+ // Do not evaluate nested structural expressions during the parent scan.
5194
+ if (isAwaitBranchDescendant(el))
5195
+ return;
5192
5196
  const hasIf = el.hasAttribute('*if');
5193
5197
  const hasFor = el.hasAttribute('*for');
5194
5198
  const hasSwitch = el.hasAttribute('*switch');
@@ -5233,6 +5237,20 @@
5233
5237
  }
5234
5238
  });
5235
5239
  }
5240
+ function isAwaitBranchDescendant(element) {
5241
+ let child = element;
5242
+ let parent = element.parentElement;
5243
+ while (parent && parent !== document.body) {
5244
+ if (parent.hasAttribute('*await') && (child.hasAttribute('*pending') ||
5245
+ child.hasAttribute('*then') ||
5246
+ child.hasAttribute('*catch'))) {
5247
+ return true;
5248
+ }
5249
+ child = parent;
5250
+ parent = parent.parentElement;
5251
+ }
5252
+ return false;
5253
+ }
5236
5254
  const elementBelongsToAnotherScope = (el, scope) => {
5237
5255
  const owner = getScopeFromElement(el);
5238
5256
  return Boolean(owner && owner !== scope);
@@ -8543,20 +8561,20 @@
8543
8561
  portalCreate,
8544
8562
  portalDestroy,
8545
8563
  setCspNonce,
8546
- version: '0.3.1'
8564
+ version: '0.3.2'
8547
8565
  };
8548
8566
 
8549
8567
  // This file was generated. Do not modify manually!
8550
- var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
8568
+ var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
8551
8569
 
8552
8570
  // This file was generated. Do not modify manually!
8553
- var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
8571
+ var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
8554
8572
 
8555
8573
  // This file was generated. Do not modify manually!
8556
- var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0897-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1add\u1ae0-\u1aeb\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65";
8574
+ var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0897-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65";
8557
8575
 
8558
8576
  // This file was generated. Do not modify manually!
8559
- var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088f\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5c\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdc-\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c8a\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7dc\ua7f1-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
8577
+ var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c8a\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7cd\ua7d0\ua7d1\ua7d3\ua7d5-\ua7dc\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
8560
8578
 
8561
8579
  // These are a run-length and offset encoded representation of the
8562
8580
  // >0xffff code points that are a valid part of identifiers. The
@@ -8881,12 +8899,9 @@
8881
8899
  // for new syntax features.
8882
8900
  ecmaVersion: null,
8883
8901
  // `sourceType` indicates the mode the code should be parsed in.
8884
- // Can be either `"script"`, `"module"` or `"commonjs"`. This influences global
8902
+ // Can be either `"script"` or `"module"`. This influences global
8885
8903
  // strict mode and parsing of `import` and `export` declarations.
8886
8904
  sourceType: "script",
8887
- // When set to true, enable strict parsing mode even if `sourceType`
8888
- // is `"script"`.
8889
- strict: false,
8890
8905
  // `onInsertedSemicolon` can be a callback that will be called when
8891
8906
  // a semicolon is automatically inserted. It will be passed the
8892
8907
  // position of the inserted semicolon as an offset, and if
@@ -8928,11 +8943,6 @@
8928
8943
  // line being 1-based and column 0-based) will be attached to the
8929
8944
  // nodes.
8930
8945
  locations: false,
8931
- // Pass an optional `{line, column}` object to use for the start of
8932
- // the parse. This is mostly useful when using `parseExpressionAt`
8933
- // with `locations: true`, to prevent the parser from having to
8934
- // determine the line position at the start position.
8935
- startLocation: null,
8936
8946
  // A function can be passed as `onToken` option, which will
8937
8947
  // cause Acorn to call that function with object in the same
8938
8948
  // format as tokens returned from `tokenizer().getToken()`. Note
@@ -9013,9 +9023,6 @@
9013
9023
  if (isArray(options.onComment))
9014
9024
  { options.onComment = pushComment(options, options.onComment); }
9015
9025
 
9016
- if (options.sourceType === "commonjs" && options.allowAwaitOutsideFunction)
9017
- { throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs") }
9018
-
9019
9026
  return options
9020
9027
  }
9021
9028
 
@@ -9047,7 +9054,6 @@
9047
9054
  SCOPE_DIRECT_SUPER = 128,
9048
9055
  SCOPE_CLASS_STATIC_BLOCK = 256,
9049
9056
  SCOPE_CLASS_FIELD_INIT = 512,
9050
- SCOPE_SWITCH = 1024,
9051
9057
  SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
9052
9058
 
9053
9059
  function functionFlags(async, generator) {
@@ -9086,17 +9092,13 @@
9086
9092
  // Set up token state
9087
9093
 
9088
9094
  // The current position of the tokenizer in the input.
9089
- this.pos = startPos || 0;
9090
- this.curLine = 1;
9091
- if (options.startLocation) {
9092
- this.lineStart = this.pos - options.startLocation.column;
9093
- this.curLine = options.startLocation.line;
9094
- } else if (startPos) {
9095
+ if (startPos) {
9096
+ this.pos = startPos;
9095
9097
  this.lineStart = this.input.lastIndexOf("\n", startPos - 1) + 1;
9096
- if (this.options.locations)
9097
- { this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length; }
9098
+ this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length;
9098
9099
  } else {
9099
- this.lineStart = 0;
9100
+ this.pos = this.lineStart = 0;
9101
+ this.curLine = 1;
9100
9102
  }
9101
9103
 
9102
9104
  // Properties of the current token:
@@ -9122,7 +9124,7 @@
9122
9124
 
9123
9125
  // Figure out if it's a module code.
9124
9126
  this.inModule = options.sourceType === "module";
9125
- this.strict = this.inModule || options.strict === true || this.strictDirective(this.pos);
9127
+ this.strict = this.inModule || this.strictDirective(this.pos);
9126
9128
 
9127
9129
  // Used to signify the start of a potential arrow function
9128
9130
  this.potentialArrowAt = -1;
@@ -9141,12 +9143,7 @@
9141
9143
 
9142
9144
  // Scope tracking for duplicate variable names (see scope.js)
9143
9145
  this.scopeStack = [];
9144
- this.enterScope(
9145
- this.options.sourceType === "commonjs"
9146
- // In commonjs, the top-level scope behaves like a function scope
9147
- ? SCOPE_FUNCTION
9148
- : SCOPE_TOP
9149
- );
9146
+ this.enterScope(SCOPE_TOP);
9150
9147
 
9151
9148
  // For RegExp validation
9152
9149
  this.regexpState = null;
@@ -9157,14 +9154,12 @@
9157
9154
  this.privateNameStack = [];
9158
9155
  };
9159
9156
 
9160
- var prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowReturn: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },allowUsing: { configurable: true },inClassStaticBlock: { configurable: true } };
9157
+ var prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },inClassStaticBlock: { configurable: true } };
9161
9158
 
9162
9159
  Parser.prototype.parse = function parse () {
9163
- var this$1$1 = this;
9164
-
9165
9160
  var node = this.options.program || this.startNode();
9166
9161
  this.nextToken();
9167
- return this.catchStackOverflow(function () { return this$1$1.parseTopLevel(node); })
9162
+ return this.parseTopLevel(node)
9168
9163
  };
9169
9164
 
9170
9165
  prototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 };
@@ -9183,12 +9178,6 @@
9183
9178
  return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction
9184
9179
  };
9185
9180
 
9186
- prototypeAccessors.allowReturn.get = function () {
9187
- if (this.inFunction) { return true }
9188
- if (this.options.allowReturnOutsideFunction && this.currentVarScope().flags & SCOPE_TOP) { return true }
9189
- return false
9190
- };
9191
-
9192
9181
  prototypeAccessors.allowSuper.get = function () {
9193
9182
  var ref = this.currentThisScope();
9194
9183
  var flags = ref.flags;
@@ -9209,14 +9198,6 @@
9209
9198
  return false
9210
9199
  };
9211
9200
 
9212
- prototypeAccessors.allowUsing.get = function () {
9213
- var ref = this.currentScope();
9214
- var flags = ref.flags;
9215
- if (flags & SCOPE_SWITCH) { return false }
9216
- if (!this.inModule && flags & SCOPE_TOP) { return false }
9217
- return true
9218
- };
9219
-
9220
9201
  prototypeAccessors.inClassStaticBlock.get = function () {
9221
9202
  return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0
9222
9203
  };
@@ -9303,17 +9284,6 @@
9303
9284
  return true
9304
9285
  };
9305
9286
 
9306
- pp$9.catchStackOverflow = function(f) {
9307
- try {
9308
- return f()
9309
- } catch (e) {
9310
- if (e instanceof Error && (/\bstack\b.*\b(exceeded|overflow)\b/i.test(e.message) || /\btoo much recursion\b/i.test(e.message)))
9311
- { this.raise(this.start, "Not enough stack space to parse input"); }
9312
- else
9313
- { throw e }
9314
- }
9315
- };
9316
-
9317
9287
  // Asserts that following token is given contextual keyword.
9318
9288
 
9319
9289
  pp$9.expectContextual = function(name) {
@@ -9417,10 +9387,10 @@
9417
9387
  // to its body instead of creating a new node.
9418
9388
 
9419
9389
  pp$8.parseTopLevel = function(node) {
9420
- var exports$1 = Object.create(null);
9390
+ var exports = Object.create(null);
9421
9391
  if (!node.body) { node.body = []; }
9422
9392
  while (this.type !== types$1.eof) {
9423
- var stmt = this.parseStatement(null, true, exports$1);
9393
+ var stmt = this.parseStatement(null, true, exports);
9424
9394
  node.body.push(stmt);
9425
9395
  }
9426
9396
  if (this.inModule)
@@ -9432,7 +9402,7 @@
9432
9402
  } }
9433
9403
  this.adaptDirectivePrologue(node.body);
9434
9404
  this.next();
9435
- node.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType;
9405
+ node.sourceType = this.options.sourceType;
9436
9406
  return this.finishNode(node, "Program")
9437
9407
  };
9438
9408
 
@@ -9442,7 +9412,7 @@
9442
9412
  if (this.options.ecmaVersion < 6 || !this.isContextual("let")) { return false }
9443
9413
  skipWhiteSpace.lastIndex = this.pos;
9444
9414
  var skip = skipWhiteSpace.exec(this.input);
9445
- var next = this.pos + skip[0].length, nextCh = this.fullCharCodeAt(next);
9415
+ var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
9446
9416
  // For ambiguous cases, determine if a LexicalDeclaration (or only a
9447
9417
  // Statement) is allowed here. If context is not empty then only a Statement
9448
9418
  // is allowed. However, `let [` is an explicit negative lookahead for
@@ -9450,13 +9420,12 @@
9450
9420
  if (nextCh === 91 || nextCh === 92) { return true } // '[', '\'
9451
9421
  if (context) { return false }
9452
9422
 
9453
- if (nextCh === 123) { return true } // '{'
9454
- if (isIdentifierStart(nextCh)) {
9455
- var start = next;
9456
- do { next += nextCh <= 0xffff ? 1 : 2; }
9457
- while (isIdentifierChar(nextCh = this.fullCharCodeAt(next)))
9458
- if (nextCh === 92) { return true }
9459
- var ident = this.input.slice(start, next);
9423
+ if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral
9424
+ if (isIdentifierStart(nextCh, true)) {
9425
+ var pos = next + 1;
9426
+ while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) { ++pos; }
9427
+ if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true }
9428
+ var ident = this.input.slice(next, pos);
9460
9429
  if (!keywordRelationalOperator.test(ident)) { return true }
9461
9430
  }
9462
9431
  return false
@@ -9475,7 +9444,7 @@
9475
9444
  return !lineBreak.test(this.input.slice(this.pos, next)) &&
9476
9445
  this.input.slice(next, next + 8) === "function" &&
9477
9446
  (next + 8 === this.input.length ||
9478
- !(isIdentifierChar(after = this.fullCharCodeAt(next + 8)) || after === 92 /* '\' */))
9447
+ !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00))
9479
9448
  };
9480
9449
 
9481
9450
  pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
@@ -9489,39 +9458,28 @@
9489
9458
  if (lineBreak.test(this.input.slice(this.pos, next))) { return false }
9490
9459
 
9491
9460
  if (isAwaitUsing) {
9492
- var usingEndPos = next + 5 /* using */, after;
9493
- if (this.input.slice(next, usingEndPos) !== "using" ||
9494
- usingEndPos === this.input.length ||
9495
- isIdentifierChar(after = this.fullCharCodeAt(usingEndPos)) ||
9496
- after === 92 /* '\' */
9461
+ var awaitEndPos = next + 5 /* await */, after;
9462
+ if (this.input.slice(next, awaitEndPos) !== "using" ||
9463
+ awaitEndPos === this.input.length ||
9464
+ isIdentifierChar(after = this.input.charCodeAt(awaitEndPos)) ||
9465
+ (after > 0xd7ff && after < 0xdc00)
9497
9466
  ) { return false }
9498
9467
 
9499
- skipWhiteSpace.lastIndex = usingEndPos;
9468
+ skipWhiteSpace.lastIndex = awaitEndPos;
9500
9469
  var skipAfterUsing = skipWhiteSpace.exec(this.input);
9501
- next = usingEndPos + skipAfterUsing[0].length;
9502
- if (skipAfterUsing && lineBreak.test(this.input.slice(usingEndPos, next))) { return false }
9503
- }
9504
-
9505
- var ch = this.fullCharCodeAt(next);
9506
- if (!isIdentifierStart(ch) && ch !== 92 /* '\' */) { return false }
9507
- var idStart = next;
9508
- do { next += ch <= 0xffff ? 1 : 2; }
9509
- while (isIdentifierChar(ch = this.fullCharCodeAt(next)))
9510
- if (ch === 92) { return true }
9511
- var id = this.input.slice(idStart, next);
9512
- if (keywordRelationalOperator.test(id)) { return false }
9513
- if (isFor && !isAwaitUsing && id === "of") {
9514
- // Look ahead for using declaration with initializer, i.e., `for (using of = ...)`
9515
- skipWhiteSpace.lastIndex = next;
9516
- var skipAfterOf = skipWhiteSpace.exec(this.input);
9517
- next = next + skipAfterOf[0].length;
9518
- if (this.input.charCodeAt(next) !== 61 /* '=' */ ||
9519
- // Check for ==, === and => operators
9520
- (ch = this.input.charCodeAt(next + 1)) === 61 /* '=' */ || ch === 62 /* '>' */) {
9521
- return false
9470
+ if (skipAfterUsing && lineBreak.test(this.input.slice(awaitEndPos, awaitEndPos + skipAfterUsing[0].length))) { return false }
9471
+ }
9472
+
9473
+ if (isFor) {
9474
+ var ofEndPos = next + 2 /* of */, after$1;
9475
+ if (this.input.slice(next, ofEndPos) === "of") {
9476
+ if (ofEndPos === this.input.length ||
9477
+ (!isIdentifierChar(after$1 = this.input.charCodeAt(ofEndPos)) && !(after$1 > 0xd7ff && after$1 < 0xdc00))) { return false }
9522
9478
  }
9523
9479
  }
9524
- return true
9480
+
9481
+ var ch = this.input.charCodeAt(next);
9482
+ return isIdentifierStart(ch, true) || ch === 92 // '\'
9525
9483
  };
9526
9484
 
9527
9485
  pp$8.isAwaitUsing = function(isFor) {
@@ -9539,7 +9497,7 @@
9539
9497
  // `if (foo) /blah/.exec(foo)`, where looking at the previous token
9540
9498
  // does not help.
9541
9499
 
9542
- pp$8.parseStatement = function(context, topLevel, exports$1) {
9500
+ pp$8.parseStatement = function(context, topLevel, exports) {
9543
9501
  var starttype = this.type, node = this.startNode(), kind;
9544
9502
 
9545
9503
  if (this.isLet(context)) {
@@ -9594,7 +9552,7 @@
9594
9552
  if (!this.inModule)
9595
9553
  { this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); }
9596
9554
  }
9597
- return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports$1)
9555
+ return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)
9598
9556
 
9599
9557
  // If the statement does not start with a statement keyword or a
9600
9558
  // brace, it's an ExpressionStatement or LabeledStatement. We
@@ -9610,12 +9568,8 @@
9610
9568
 
9611
9569
  var usingKind = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
9612
9570
  if (usingKind) {
9613
- if (!this.allowUsing) {
9614
- this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");
9615
- }
9616
- if (context) {
9617
- // Cases like `for (;;) using x = ...;`, `if (true) await using x = ...;`, etc. are not allowed.
9618
- this.raise(this.start, "Using declaration is not allowed in single-statement positions");
9571
+ if (topLevel && this.options.sourceType === "script") {
9572
+ this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`");
9619
9573
  }
9620
9574
  if (usingKind === "await using") {
9621
9575
  if (!this.canAwait) {
@@ -9712,12 +9666,7 @@
9712
9666
  if (usingKind) {
9713
9667
  var init$2 = this.startNode();
9714
9668
  this.next();
9715
- if (usingKind === "await using") {
9716
- if (!this.canAwait) {
9717
- this.raise(this.start, "Await using cannot appear outside of async function");
9718
- }
9719
- this.next();
9720
- }
9669
+ if (usingKind === "await using") { this.next(); }
9721
9670
  this.parseVar(init$2, true, usingKind);
9722
9671
  this.finishNode(init$2, "VariableDeclaration");
9723
9672
  return this.parseForAfterInit(node, init$2, awaitAt)
@@ -9750,12 +9699,11 @@
9750
9699
  // Helper method to parse for loop after variable initialization
9751
9700
  pp$8.parseForAfterInit = function(node, init, awaitAt) {
9752
9701
  if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) && init.declarations.length === 1) {
9753
- if (this.type === types$1._in) {
9754
- if ((init.kind === "using" || init.kind === "await using") && !init.declarations[0].init) {
9755
- this.raise(this.start, "Using declaration is not allowed in for-in loops");
9756
- }
9757
- if (this.options.ecmaVersion >= 9 && awaitAt > -1) { this.unexpected(awaitAt); }
9758
- } else if (this.options.ecmaVersion >= 9) { node.await = awaitAt > -1; }
9702
+ if (this.options.ecmaVersion >= 9) {
9703
+ if (this.type === types$1._in) {
9704
+ if (awaitAt > -1) { this.unexpected(awaitAt); }
9705
+ } else { node.await = awaitAt > -1; }
9706
+ }
9759
9707
  return this.parseForIn(node, init)
9760
9708
  }
9761
9709
  if (awaitAt > -1) { this.unexpected(awaitAt); }
@@ -9777,7 +9725,7 @@
9777
9725
  };
9778
9726
 
9779
9727
  pp$8.parseReturnStatement = function(node) {
9780
- if (!this.allowReturn)
9728
+ if (!this.inFunction && !this.options.allowReturnOutsideFunction)
9781
9729
  { this.raise(this.start, "'return' outside of function"); }
9782
9730
  this.next();
9783
9731
 
@@ -9796,7 +9744,7 @@
9796
9744
  node.cases = [];
9797
9745
  this.expect(types$1.braceL);
9798
9746
  this.labels.push(switchLabel);
9799
- this.enterScope(SCOPE_SWITCH);
9747
+ this.enterScope(0);
9800
9748
 
9801
9749
  // Statements under must be grouped (by label) in SwitchCase
9802
9750
  // nodes. `cur` is used to keep the node that we are currently
@@ -10360,11 +10308,11 @@
10360
10308
 
10361
10309
  // Parses module export declaration.
10362
10310
 
10363
- pp$8.parseExportAllDeclaration = function(node, exports$1) {
10311
+ pp$8.parseExportAllDeclaration = function(node, exports) {
10364
10312
  if (this.options.ecmaVersion >= 11) {
10365
10313
  if (this.eatContextual("as")) {
10366
10314
  node.exported = this.parseModuleExportName();
10367
- this.checkExport(exports$1, node.exported, this.lastTokStart);
10315
+ this.checkExport(exports, node.exported, this.lastTokStart);
10368
10316
  } else {
10369
10317
  node.exported = null;
10370
10318
  }
@@ -10378,14 +10326,14 @@
10378
10326
  return this.finishNode(node, "ExportAllDeclaration")
10379
10327
  };
10380
10328
 
10381
- pp$8.parseExport = function(node, exports$1) {
10329
+ pp$8.parseExport = function(node, exports) {
10382
10330
  this.next();
10383
10331
  // export * from '...'
10384
10332
  if (this.eat(types$1.star)) {
10385
- return this.parseExportAllDeclaration(node, exports$1)
10333
+ return this.parseExportAllDeclaration(node, exports)
10386
10334
  }
10387
10335
  if (this.eat(types$1._default)) { // export default ...
10388
- this.checkExport(exports$1, "default", this.lastTokStart);
10336
+ this.checkExport(exports, "default", this.lastTokStart);
10389
10337
  node.declaration = this.parseExportDefaultDeclaration();
10390
10338
  return this.finishNode(node, "ExportDefaultDeclaration")
10391
10339
  }
@@ -10393,16 +10341,16 @@
10393
10341
  if (this.shouldParseExportStatement()) {
10394
10342
  node.declaration = this.parseExportDeclaration(node);
10395
10343
  if (node.declaration.type === "VariableDeclaration")
10396
- { this.checkVariableExport(exports$1, node.declaration.declarations); }
10344
+ { this.checkVariableExport(exports, node.declaration.declarations); }
10397
10345
  else
10398
- { this.checkExport(exports$1, node.declaration.id, node.declaration.id.start); }
10346
+ { this.checkExport(exports, node.declaration.id, node.declaration.id.start); }
10399
10347
  node.specifiers = [];
10400
10348
  node.source = null;
10401
10349
  if (this.options.ecmaVersion >= 16)
10402
10350
  { node.attributes = []; }
10403
10351
  } else { // export { x, y as z } [from '...']
10404
10352
  node.declaration = null;
10405
- node.specifiers = this.parseExportSpecifiers(exports$1);
10353
+ node.specifiers = this.parseExportSpecifiers(exports);
10406
10354
  if (this.eatContextual("from")) {
10407
10355
  if (this.type !== types$1.string) { this.unexpected(); }
10408
10356
  node.source = this.parseExprAtom();
@@ -10452,47 +10400,47 @@
10452
10400
  }
10453
10401
  };
10454
10402
 
10455
- pp$8.checkExport = function(exports$1, name, pos) {
10456
- if (!exports$1) { return }
10403
+ pp$8.checkExport = function(exports, name, pos) {
10404
+ if (!exports) { return }
10457
10405
  if (typeof name !== "string")
10458
10406
  { name = name.type === "Identifier" ? name.name : name.value; }
10459
- if (hasOwn(exports$1, name))
10407
+ if (hasOwn(exports, name))
10460
10408
  { this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
10461
- exports$1[name] = true;
10409
+ exports[name] = true;
10462
10410
  };
10463
10411
 
10464
- pp$8.checkPatternExport = function(exports$1, pat) {
10412
+ pp$8.checkPatternExport = function(exports, pat) {
10465
10413
  var type = pat.type;
10466
10414
  if (type === "Identifier")
10467
- { this.checkExport(exports$1, pat, pat.start); }
10415
+ { this.checkExport(exports, pat, pat.start); }
10468
10416
  else if (type === "ObjectPattern")
10469
10417
  { for (var i = 0, list = pat.properties; i < list.length; i += 1)
10470
10418
  {
10471
10419
  var prop = list[i];
10472
10420
 
10473
- this.checkPatternExport(exports$1, prop);
10421
+ this.checkPatternExport(exports, prop);
10474
10422
  } }
10475
10423
  else if (type === "ArrayPattern")
10476
10424
  { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {
10477
10425
  var elt = list$1[i$1];
10478
10426
 
10479
- if (elt) { this.checkPatternExport(exports$1, elt); }
10427
+ if (elt) { this.checkPatternExport(exports, elt); }
10480
10428
  } }
10481
10429
  else if (type === "Property")
10482
- { this.checkPatternExport(exports$1, pat.value); }
10430
+ { this.checkPatternExport(exports, pat.value); }
10483
10431
  else if (type === "AssignmentPattern")
10484
- { this.checkPatternExport(exports$1, pat.left); }
10432
+ { this.checkPatternExport(exports, pat.left); }
10485
10433
  else if (type === "RestElement")
10486
- { this.checkPatternExport(exports$1, pat.argument); }
10434
+ { this.checkPatternExport(exports, pat.argument); }
10487
10435
  };
10488
10436
 
10489
- pp$8.checkVariableExport = function(exports$1, decls) {
10490
- if (!exports$1) { return }
10437
+ pp$8.checkVariableExport = function(exports, decls) {
10438
+ if (!exports) { return }
10491
10439
  for (var i = 0, list = decls; i < list.length; i += 1)
10492
10440
  {
10493
10441
  var decl = list[i];
10494
10442
 
10495
- this.checkPatternExport(exports$1, decl.id);
10443
+ this.checkPatternExport(exports, decl.id);
10496
10444
  }
10497
10445
  };
10498
10446
 
@@ -10507,13 +10455,13 @@
10507
10455
 
10508
10456
  // Parses a comma-separated list of module exports.
10509
10457
 
10510
- pp$8.parseExportSpecifier = function(exports$1) {
10458
+ pp$8.parseExportSpecifier = function(exports) {
10511
10459
  var node = this.startNode();
10512
10460
  node.local = this.parseModuleExportName();
10513
10461
 
10514
10462
  node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
10515
10463
  this.checkExport(
10516
- exports$1,
10464
+ exports,
10517
10465
  node.exported,
10518
10466
  node.exported.start
10519
10467
  );
@@ -10521,7 +10469,7 @@
10521
10469
  return this.finishNode(node, "ExportSpecifier")
10522
10470
  };
10523
10471
 
10524
- pp$8.parseExportSpecifiers = function(exports$1) {
10472
+ pp$8.parseExportSpecifiers = function(exports) {
10525
10473
  var nodes = [], first = true;
10526
10474
  // export { x, y as z } [from '...']
10527
10475
  this.expect(types$1.braceL);
@@ -10531,7 +10479,7 @@
10531
10479
  if (this.afterTrailingComma(types$1.braceR)) { break }
10532
10480
  } else { first = false; }
10533
10481
 
10534
- nodes.push(this.parseExportSpecifier(exports$1));
10482
+ nodes.push(this.parseExportSpecifier(exports));
10535
10483
  }
10536
10484
  return nodes
10537
10485
  };
@@ -11262,19 +11210,15 @@
11262
11210
  // delayed syntax error at correct position).
11263
11211
 
11264
11212
  pp$5.parseExpression = function(forInit, refDestructuringErrors) {
11265
- var this$1$1 = this;
11266
-
11267
- return this.catchStackOverflow(function () {
11268
- var startPos = this$1$1.start, startLoc = this$1$1.startLoc;
11269
- var expr = this$1$1.parseMaybeAssign(forInit, refDestructuringErrors);
11270
- if (this$1$1.type === types$1.comma) {
11271
- var node = this$1$1.startNodeAt(startPos, startLoc);
11272
- node.expressions = [expr];
11273
- while (this$1$1.eat(types$1.comma)) { node.expressions.push(this$1$1.parseMaybeAssign(forInit, refDestructuringErrors)); }
11274
- return this$1$1.finishNode(node, "SequenceExpression")
11275
- }
11276
- return expr
11277
- })
11213
+ var startPos = this.start, startLoc = this.startLoc;
11214
+ var expr = this.parseMaybeAssign(forInit, refDestructuringErrors);
11215
+ if (this.type === types$1.comma) {
11216
+ var node = this.startNodeAt(startPos, startLoc);
11217
+ node.expressions = [expr];
11218
+ while (this.eat(types$1.comma)) { node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors)); }
11219
+ return this.finishNode(node, "SequenceExpression")
11220
+ }
11221
+ return expr
11278
11222
  };
11279
11223
 
11280
11224
  // Parse an assignment expression. This includes applications of
@@ -11339,7 +11283,7 @@
11339
11283
  var startPos = this.start, startLoc = this.startLoc;
11340
11284
  var expr = this.parseExprOps(forInit, refDestructuringErrors);
11341
11285
  if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }
11342
- if (!(expr.type === "ArrowFunctionExpression" && expr.start === startPos) && this.eat(types$1.question)) {
11286
+ if (this.eat(types$1.question)) {
11343
11287
  var node = this.startNodeAt(startPos, startLoc);
11344
11288
  node.test = expr;
11345
11289
  node.consequent = this.parseMaybeAssign();
@@ -11439,7 +11383,7 @@
11439
11383
  }
11440
11384
  }
11441
11385
 
11442
- if (!incDec && !(expr.type === "ArrowFunctionExpression" && expr.start === startPos) && this.eat(types$1.starstar)) {
11386
+ if (!incDec && this.eat(types$1.starstar)) {
11443
11387
  if (sawUnary)
11444
11388
  { this.unexpected(this.lastTokStart); }
11445
11389
  else
@@ -11891,8 +11835,6 @@
11891
11835
  }
11892
11836
  var startPos = this.start, startLoc = this.startLoc;
11893
11837
  node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);
11894
- if (node.callee.type === "Super")
11895
- { this.raiseRecoverable(startPos, "Invalid use of 'super'"); }
11896
11838
  if (this.eat(types$1.parenL)) { node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false); }
11897
11839
  else { node.arguments = empty; }
11898
11840
  return this.finishNode(node, "NewExpression")
@@ -12510,7 +12452,7 @@
12510
12452
  };
12511
12453
 
12512
12454
  // This file was generated by "bin/generate-unicode-script-values.js". Do not modify manually!
12513
- var scriptValuesAddedInUnicode = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz";
12455
+ var scriptValuesAddedInUnicode = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";
12514
12456
 
12515
12457
  // This file contains Unicode properties extracted from the ECMAScript specification.
12516
12458
  // The lists are extracted like so:
@@ -14071,17 +14013,13 @@
14071
14013
  return this.getTokenFromCode(code)
14072
14014
  };
14073
14015
 
14074
- pp.fullCharCodeAt = function(pos) {
14075
- var code = this.input.charCodeAt(pos);
14016
+ pp.fullCharCodeAtPos = function() {
14017
+ var code = this.input.charCodeAt(this.pos);
14076
14018
  if (code <= 0xd7ff || code >= 0xdc00) { return code }
14077
- var next = this.input.charCodeAt(pos + 1);
14019
+ var next = this.input.charCodeAt(this.pos + 1);
14078
14020
  return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00
14079
14021
  };
14080
14022
 
14081
- pp.fullCharCodeAtPos = function() {
14082
- return this.fullCharCodeAt(this.pos)
14083
- };
14084
-
14085
14023
  pp.skipBlockComment = function() {
14086
14024
  var startLoc = this.options.onComment && this.curPosition();
14087
14025
  var start = this.pos, end = this.input.indexOf("*/", this.pos += 2);
@@ -14809,7 +14747,7 @@
14809
14747
  // [ghbt]: https://github.com/acornjs/acorn/issues
14810
14748
 
14811
14749
 
14812
- var version = "8.18.0";
14750
+ var version = "8.15.0";
14813
14751
 
14814
14752
  Parser.acorn = {
14815
14753
  Parser: Parser,