meriyah 7.3.1 → 7.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.
@@ -21,7 +21,8 @@ export declare const enum Context {
21
21
  AllowNewTarget = 65536,
22
22
  DisallowIn = 131072,
23
23
  AllowEscapedKeyword = 262144,
24
- InStaticBlock = 524288
24
+ InStaticBlock = 524288,
25
+ InJSXTag = 1048576
25
26
  }
26
27
  export declare const enum PropertyKind {
27
28
  None = 0,
@@ -27,12 +27,12 @@ export declare class Scope {
27
27
  variableBindings: Map<string, BindingKind>;
28
28
  constructor(parser: Parser, type?: ScopeKind, parent?: Scope | undefined);
29
29
  createChildScope(type?: ScopeKind): Scope;
30
- addVarOrBlock(context: Context, name: string, kind: BindingKind, origin: Origin): void;
31
- addVarName(context: Context, name: string, kind: BindingKind): void;
30
+ addVarOrBlock(context: Context, name: string, kind: BindingKind, tokenStart: Location, tokenEnd: Location, origin: Origin): void;
31
+ addVarName(context: Context, name: string, kind: BindingKind, tokenStart: Location, tokenEnd: Location): void;
32
32
  hasVariable(name: string): boolean;
33
- addBlockName(context: Context, name: string, kind: BindingKind, origin?: Origin): void;
34
- recordScopeError(type: Errors, ...params: string[]): void;
33
+ addBlockName(context: Context, name: string, kind: BindingKind, tokenStart: Location, tokenEnd: Location, origin?: Origin): void;
34
+ recordScopeError(type: Errors, tokenStart: Location, tokenEnd: Location, ...params: string[]): void;
35
35
  reportScopeError(): void;
36
36
  }
37
- export declare function createArrowHeadParsingScope(parser: Parser, context: Context, value: string): Scope;
37
+ export declare function createArrowHeadParsingScope(parser: Parser, context: Context, value: string, tokenStart: Location, tokenEnd: Location): Scope;
38
38
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meriyah",
3
- "version": "7.3.1",
3
+ "version": "7.3.2",
4
4
  "description": "A 100% compliant, self-hosted javascript parser with high focus on both performance and stability",
5
5
  "main": "dist/meriyah.cjs",
6
6
  "module": "dist/meriyah.min.mjs",