ShadowNode icon indicating copy to clipboard operation
ShadowNode copied to clipboard

jerry: support const/let

Open yorkie opened this issue 7 years ago • 2 comments

The keyword const and let are such important features in JavaScript community, let's do support them!

yorkie avatar Jan 02 '18 09:01 yorkie

work perhaps should do:

  1. find all enter and exit of block scope
  2. organize symbol table. Jerry has no AST, keep one literal pool for per function, and patch literal index in parser_post_processing(). The difficulty is how to keep low memory footprint and do not rewrite too much code. JS var hoisting makes things worse. We should record all vars in a scope, and can not drop them, which makes scope index base not known before function parse complete.

algebrait avatar May 08 '18 04:05 algebrait

any progress?

yeliex avatar Jul 11 '19 02:07 yeliex