mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibJS: Specify overridden functions with 'override'
This commit is contained in:
parent
cfd710eb31
commit
94088640f1
Notes:
sideshowbarker
2024-07-19 08:16:56 +09:00
Author: https://github.com/0xtechnobabble Commit: https://github.com/SerenityOS/serenity/commit/94088640f11 Pull-request: https://github.com/SerenityOS/serenity/pull/1470 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/oriko1010
1 changed files with 2 additions and 2 deletions
|
@ -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"; }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue