Implement the core of let/const statement. (#3239)

This patch implements the core part of let/const statements. Redeclarations are correctly
detected and separate contexts are correctly created for these statements. Register
optimizations are also emplyed whenever possible.

Lots of features are still missing:
 - checking the var statements in eval
 - const are treated as lets
 - single statement checks are missing
 - export declarations are exported as vars, let/const export is not supported

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
This commit is contained in:
Zoltan Herczeg authored and Dániel Bátyai committed 2019-10-25 18:08:10 +02:00
1 parent 4b352758c1
commit 3d797b8836
33 files changed
+1997 -217

No files matched your search

@@ -12,4 +12,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.
var let = 1;
var package = 1;