goldstein 7.2.0 → 7.3.0

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.
package/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.02.15, v7.3.0
2
+
3
+ fix:
4
+ - 5af35c8 goldstein: infinite loop
5
+
1
6
  2026.02.12, v7.2.0
2
7
 
3
8
  feature:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstein",
3
- "version": "7.2.0",
3
+ "version": "7.3.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "JavaScript with no limits",
@@ -10,7 +10,12 @@ export default function fn(Parser) {
10
10
  node.properties = [];
11
11
  this.next();
12
12
 
13
+ let i = 1;
14
+
13
15
  while (!this.eat(tt.braceR)) {
16
+ if (++i > 10_000)
17
+ break;
18
+
14
19
  if (!first) {
15
20
  this.eat(tt.comma);
16
21
  this.eat(tt.semi);