From 31556bf8ec7972ff61cf99deb34127fdac2bc803 Mon Sep 17 00:00:00 2001 From: Jan Pilzer Date: Mon, 9 Oct 2017 11:16:54 -0700 Subject: [PATCH 1/2] Fix: Remove blockBindings from docs (fixes #307, fixes #339) --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 7721fc3b..a6241def 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,6 @@ Espree is licensed under a permissive BSD 2-clause license. * The `tokenize()` method does not use `ecmaFeatures`. Any string will be tokenized completely based on ECMAScript 6 semantics. * Trailing whitespace no longer is counted as part of a node. -* `let` and `const` declarations are no longer parsed by default. You must opt-in using `ecmaFeatures.blockBindings`. * The `esparse` and `esvalidate` binary scripts have been removed. * There is no `tolerant` option. We will investigate adding this back in the future. From 66f86e3807ec0d223280dcd56adfeb7a67f151d8 Mon Sep 17 00:00:00 2001 From: Jan Pilzer Date: Mon, 9 Oct 2017 12:01:47 -0700 Subject: [PATCH 2/2] Fix: Replace blockBindings in docs (fixes #307, fixes #339) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a6241def..75205cf4 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ Espree is licensed under a permissive BSD 2-clause license. * The `tokenize()` method does not use `ecmaFeatures`. Any string will be tokenized completely based on ECMAScript 6 semantics. * Trailing whitespace no longer is counted as part of a node. +* `let` and `const` declarations are no longer parsed by default. You must opt-in by using an `ecmaVersion` newer than `5` or setting `sourceType` to `module`. * The `esparse` and `esvalidate` binary scripts have been removed. * There is no `tolerant` option. We will investigate adding this back in the future.