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.
The keyword
const
andlet
are such important features in JavaScript community, let's do support them!