1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

LibJS: Add support for "continue" inside "for" statements :^)

This commit is contained in:
Andreas Kling 2020-04-05 00:22:42 +02:00
parent e3b92caa6d
commit 9ebd066ac8
8 changed files with 65 additions and 1 deletions

View file

@ -814,4 +814,14 @@ private:
virtual const char* class_name() const override { return "BreakStatement"; }
};
class ContinueStatement final : public Statement {
public:
ContinueStatement() {}
virtual Value execute(Interpreter&) const override;
private:
virtual const char* class_name() const override { return "ContinueStatement"; }
};
}