mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
LibJS: Implement "else" parsing
We can now handle scripts with if/else in LibJS. Most of the changes are about fixing IfStatement to store the consequent and alternate node as Statements. Interpreter now also runs Statements, rather than running ScopeNodes.
This commit is contained in:
parent
b2f005125d
commit
fbb9e1b715
5 changed files with 31 additions and 16 deletions
|
@ -40,6 +40,7 @@ class Interpreter;
|
|||
class Object;
|
||||
class PrimitiveString;
|
||||
class ScopeNode;
|
||||
class Statement;
|
||||
class Value;
|
||||
enum class DeclarationType;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue