JazzleWare / jazzle-parser

relatively small and ridiculously fast parser for all versions of ECMAScript/Javascript, written in the greatest common divisor of all versions of ECMAScript
MIT License
8 stars 2 forks source link

`CTX_PAT|CTX_NO_SIMPLE_ERR` hasn't been used in certain locations where it must #11

Closed icefapper closed 7 years ago

icefapper commented 7 years ago

it has got to be sent to every parseExpr and parseNonSeqExpr that is not a sub-expr -- top-level exprs in other words. otherwise there are going to be inconsistencies while parsing them, especially while tracking the so-called "tricky" cases.

icefapper commented 7 years ago

CTX_PAT|CTX_NO_SIMPLE_ERR is now CTX_TOP in jazzle, signifying the contexts in which array- and object-patterns are allowed to serve as assignment left hand sides but are not allowed to leak tricky errs. this happened in https://github.com/JazzleWare/jazzle-parser/commit/6986f51c33128a6865b603c8561975b58203957