Comparing version 0.1.3-dev.20190510 to 0.1.3-dev.20190511
@@ -73,3 +73,3 @@ import { Token } from './token'; | ||
export declare function parseFunctionExpression(parser: ParserState, context: Context, isAsync: 0 | 1): ESTree.FunctionExpression; | ||
export declare function parseArrayExpressionOrPattern(parser: ParserState, context: Context, skipInitializer: 0 | 1, bindingType: BindingType): ESTree.ArrayExpression | ESTree.ArrayPattern; | ||
export declare function parseArrayExpressionOrPattern(parser: ParserState, context: Context, skipInitializer: 0 | 1, type: BindingType): ESTree.ArrayExpression | ESTree.ArrayPattern; | ||
export declare function parseMethodDefinition(parser: ParserState, context: Context, kind: Kind): ESTree.FunctionExpression; | ||
@@ -76,0 +76,0 @@ export declare function parseObjectLiteralOrPattern(parser: ParserState, context: Context, skipInitializer: 0 | 1, type: BindingType): ESTree.ObjectExpression | ESTree.ObjectPattern | ESTree.AssignmentExpression; |
{ | ||
"name": "meriyah", | ||
"version": "0.1.3-dev.20190510", | ||
"version": "0.1.3-dev.20190511", | ||
"description": "Fast and lightweight, standard-compliant javascript parser written in ECMAScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/meriyah.umd.js", |
@@ -1,2 +0,5 @@ | ||
# meriyah | ||
<p align="center"> | ||
<img width="260" height="200" src="https://github.com/meriyah/meriyah/blob/master/scripts/logo.png"> | ||
</p> | ||
[![NPM version](https://img.shields.io/npm/v/meriyah.svg?style=flat-square)](https://www.npmjs.com/package/meriyah) | ||
@@ -3,0 +6,0 @@ [![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) |
@@ -305,3 +305,4 @@ import { Token, KeywordDescTable } from './token'; | ||
} | ||
if ((parser.token & Token.IsBinaryOp) === Token.IsBinaryOp && (parser.flags & Flags.NewLine) === 0 ) report(parser, Errors.InvalidArrowPostfix); | ||
if ((parser.token & Token.IsUpdateOp) === Token.IsUpdateOp) report(parser, Errors.InvalidArrowPostfix); | ||
} |
@@ -57,3 +57,2 @@ import { ParserState } from './common'; | ||
InvalidBindingDestruct, | ||
InvalidBindingInFuncParam, | ||
InvalidAsyncArrow, | ||
@@ -209,4 +208,3 @@ StaticPrototype, | ||
[Errors.InvalidBindingDestruct]: 'The binding declaration is not destructible', | ||
[Errors.InvalidBindingInFuncParam]: 'Invalid non-destructible binding in function parameters', | ||
[Errors.InvalidAsyncArrow]: 'Invalid async arrow', | ||
[Errors.InvalidAsyncArrow]: 'Async arrow can not be followed by new expression', | ||
[Errors.StaticPrototype]: "Classes may not have a static property named 'prototype'", | ||
@@ -213,0 +211,0 @@ [Errors.InvalidConstructor]: 'Class constructor may not be a %0', |
@@ -205,3 +205,2 @@ import { skipSingleLineComment, skipMultiLineComment } from './comments'; | ||
case Token.LineTerminator: | ||
isStartOfLine = true; | ||
parser.flags |= Flags.NewLine; | ||
@@ -208,0 +207,0 @@ if ( |
@@ -45,3 +45,3 @@ import { ParserState, Context } from '../common'; | ||
if (parser.index < parser.length && parser.source.charCodeAt(parser.index) === Chars.LineFeed) { | ||
if (ret !== null) ret += fromCodePoint(ch); | ||
ret += fromCodePoint(ch); | ||
parser.currentCodePoint = parser.source.charCodeAt(++parser.index); | ||
@@ -55,3 +55,3 @@ } | ||
} | ||
if (ret !== null) ret += fromCodePoint(ch); | ||
ret += fromCodePoint(ch); | ||
} | ||
@@ -58,0 +58,0 @@ if (parser.index >= parser.length) report(parser, Errors.UnterminatedTemplate); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2075495
39903
119