1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00
serenity/Libraries/LibJS
0xtechnobabble 644b4f4201 LibJS: Evaluate for statements in their own scope if necessary
We now evaluate for loops in their own scope if their init statement is
a lexical declaration.

Evaluating for loops in their own scope allow us to obtain expected
behaviour, which means for example, that the block-scoped variables
declared in a  for statement will be limited to the scope of the for
loop's body and  statement and not to that of the current scope (i.e the
one where the for statement was made)
2020-03-14 13:58:30 +01:00
..
AST.cpp LibJS: Evaluate for statements in their own scope if necessary 2020-03-14 13:58:30 +01:00
AST.h LibJS: Evaluate for statements in their own scope if necessary 2020-03-14 13:58:30 +01:00
Cell.cpp LibJS: Make it possible to go from a Cell* to its Heap& 2020-03-13 11:08:16 +01:00
Cell.h LibJS: Make it possible to go from a Cell* to its Heap& 2020-03-13 11:08:16 +01:00
Forward.h LibJS: Add NativeFunction, a callable wrapper around a C++ lambda 2020-03-12 19:54:47 +01:00
Function.cpp LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
Function.h LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
GlobalObject.cpp LibJS: Add Object::put_native_function() for convenience 2020-03-13 11:08:16 +01:00
GlobalObject.h LibJS: Add Object::put_native_function() for convenience 2020-03-13 11:08:16 +01:00
Heap.cpp LibJS: Make it possible to go from a Cell* to its Heap& 2020-03-13 11:08:16 +01:00
Heap.h LibJS: Make the GC marking phase cycle-proof 2020-03-09 22:18:03 +01:00
HeapBlock.cpp LibJS: Make it possible to go from a Cell* to its Heap& 2020-03-13 11:08:16 +01:00
HeapBlock.h LibJS: Make it possible to go from a Cell* to its Heap& 2020-03-13 11:08:16 +01:00
Interpreter.cpp LibJS: Evaluate for statements in their own scope if necessary 2020-03-14 13:58:30 +01:00
Interpreter.h LibJS: Evaluate for statements in their own scope if necessary 2020-03-14 13:58:30 +01:00
Lexer.cpp LibJS: Lex single quote strings, escaped chars and unterminated strings 2020-03-14 12:13:53 +01:00
Lexer.h LibJS: Lex single quote strings, escaped chars and unterminated strings 2020-03-14 12:13:53 +01:00
Makefile LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
NativeFunction.cpp LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
NativeFunction.h LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
Object.cpp LibJS: Add Object::put_native_function() for convenience 2020-03-13 11:08:16 +01:00
Object.h LibJS: Add Object::put_native_function() for convenience 2020-03-13 11:08:16 +01:00
Parser.cpp LibJS/Parser: Remove superfluous switch case 2020-03-14 13:58:30 +01:00
Parser.h LibJS: Add operator precedence parsing 2020-03-14 00:11:24 +01:00
PrimitiveString.cpp LibJS: Add a new PrimitiveString class to hold GC-allocated strings 2020-03-11 19:00:22 +01:00
PrimitiveString.h LibJS: Add a new PrimitiveString class to hold GC-allocated strings 2020-03-11 19:00:22 +01:00
ScriptFunction.cpp LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
ScriptFunction.h LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
StringObject.cpp LibJS: Add StringObject, an Object wrapper around primitive strings 2020-03-11 19:00:26 +01:00
StringObject.h LibJS: Add StringObject, an Object wrapper around primitive strings 2020-03-11 19:00:26 +01:00
Token.cpp LibJS: Strip double-quote characters from StringLiteral tokens 2020-03-14 12:40:06 +01:00
Token.h LibJS: Lex single quote strings, escaped chars and unterminated strings 2020-03-14 12:13:53 +01:00
Value.cpp LibJS: Allow implicit Value construction from GC-allocated things 2020-03-12 19:57:40 +01:00
Value.h LibJS: Allow implicit Value construction from GC-allocated things 2020-03-12 19:57:40 +01:00