Skip to content

Commit

Permalink
fix(parser): removed unnecessary func args
Browse files Browse the repository at this point in the history
  • Loading branch information
KFlash committed Jun 13, 2019
1 parent f735377 commit 6c44bb7
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 52 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<p align="center">
<img width="260" height="200" src="https://github.com/meriyah/meriyah/blob/master/scripts/logo.png">
</p>

<h4 align="center">A 100% compliant, self-hosted javascript parser with high focus on both performance and stability</h4>

<p align="center">
# Meriyah

[![NPM version](https://img.shields.io/npm/v/meriyah.svg?style=flat-square)](https://www.npmjs.com/package/meriyah)
[![Code Quality: Javascript](https://img.shields.io/lgtm/grade/javascript/g/meriyah/meriyah.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/meriyah/meriyah/context:javascript)
[![Total Alerts](https://img.shields.io/lgtm/alerts/g/meriyah/meriyah.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/meriyah/meriyah/alerts)
[![CircleCI](https://circleci.com/gh/meriyah/meriyah.svg?style=svg)](https://circleci.com/gh/meriyah/meriyah)
</p>

A 100% compliant, self-hosted javascript parser with high focus on both performance and stability

## Features

Expand Down Expand Up @@ -115,6 +110,7 @@ The second argument allows you to specify various options:
| `directives` | Enable [directive prologue](https://github.com/danez/estree/blob/directive/es5.md#directive) to each literal node |
| `globalReturn` | Allow `return` in the global scope |
| `impliedStrict` | Enable strict mode (*initial enforcement*) |
| `lexical` | Enable lexical binding and scope tracking |
| `module` | Allow parsing with module goal |
| `next` | Allow parsing with `ESNext` features |
| `parenthesizedExpr` | Enable non-standard parenthesized expression node |
Expand Down
4 changes: 3 additions & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const enum Context {
OptionsDirectives = 1 << 3,
OptionsJSX = 1 << 4,
OptionsGlobalReturn = 1 << 5,
OptionsGlobalAwait = 1 << 6,
OptionsLexical = 1 << 6,
OptionsParenthesized = 1 << 7,
OptionsWebCompat = 1 << 8,
OptionsRaw = 1 << 9,
Expand Down Expand Up @@ -135,6 +135,8 @@ export interface ParserState {
assignable: AssignmentKind | DestructuringKind;
destructible: AssignmentKind | DestructuringKind;
nextCP: number;
exportedNames: any;
exportedBindings: any;
}

/**
Expand Down
Loading

0 comments on commit 6c44bb7

Please sign in to comment.