LibJS: Specify overridden functions with 'override'

This commit is contained in:
0xtechnobabble 2020-03-15 23:33:38 +02:00 committed by Andreas Kling
parent cfd710eb31
commit 94088640f1
Notes: sideshowbarker 2024-07-19 08:16:56 +09:00

View File

@ -56,7 +56,7 @@ public:
class ErrorStatement final : public Statement {
public:
Value execute(Interpreter&) const { return js_undefined(); }
Value execute(Interpreter&) const override { return js_undefined(); }
const char* class_name() const override { return "ErrorStatement"; }
};
@ -147,7 +147,7 @@ public:
class ErrorExpression final : public Expression {
public:
Value execute(Interpreter&) const { return js_undefined(); }
Value execute(Interpreter&) const override { return js_undefined(); }
const char* class_name() const override { return "ErrorExpression"; }
};