meriyah 7.3.0 → 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.
- package/CHANGELOG.md +19 -0
- package/dist/meriyah.cjs +243 -184
- package/dist/meriyah.min.mjs +1 -1
- package/dist/meriyah.mjs +243 -184
- package/dist/meriyah.umd.js +243 -184
- package/dist/meriyah.umd.min.js +1 -1
- package/dist/types/common.d.ts +2 -1
- package/dist/types/errors.d.ts +3 -1
- package/dist/types/parser/parser.d.ts +4 -0
- package/dist/types/parser/scope.d.ts +5 -5
- package/package.json +1 -1
package/dist/types/common.d.ts
CHANGED
package/dist/types/errors.d.ts
CHANGED
|
@@ -180,7 +180,9 @@ export declare const enum Errors {
|
|
|
180
180
|
InvalidImportMeta = 176,
|
|
181
181
|
InvalidEscapedImportMeta = 177,
|
|
182
182
|
InvalidAwaitAsIdentifier = 178,
|
|
183
|
-
InvalidAwaitInStaticBlock = 179
|
|
183
|
+
InvalidAwaitInStaticBlock = 179,
|
|
184
|
+
UnexpectedRightBraceInJSXText = 180,
|
|
185
|
+
UnexpectedGreaterThanInJSXText = 181
|
|
184
186
|
}
|
|
185
187
|
export declare class ParseError extends SyntaxError implements _Node {
|
|
186
188
|
start: number;
|
|
@@ -35,6 +35,10 @@ export declare class Parser {
|
|
|
35
35
|
assignable: AssignmentTargetKind;
|
|
36
36
|
destructible: DestructuringKind;
|
|
37
37
|
strictReservedRange: [Location, Location] | null;
|
|
38
|
+
firstAwaitLocation: {
|
|
39
|
+
start: Location;
|
|
40
|
+
end: Location;
|
|
41
|
+
} | null;
|
|
38
42
|
leadingDecorators: {
|
|
39
43
|
start?: Location;
|
|
40
44
|
decorators: ESTree.Decorator[];
|
|
@@ -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,
|
|
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