diff options
Diffstat (limited to 'Libraries/LibJS/AST.h')
-rw-r--r-- | Libraries/LibJS/AST.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Libraries/LibJS/AST.h b/Libraries/LibJS/AST.h index 72f8972cc3..d764f6d07b 100644 --- a/Libraries/LibJS/AST.h +++ b/Libraries/LibJS/AST.h @@ -558,6 +558,22 @@ private: double m_value { 0 }; }; +class BigIntLiteral final : public Literal { +public: + explicit BigIntLiteral(String value) + : m_value(move(value)) + { + } + + virtual Value execute(Interpreter&) const override; + virtual void dump(int indent) const override; + +private: + virtual const char* class_name() const override { return "BigIntLiteral"; } + + String m_value; +}; + class StringLiteral final : public Literal { public: explicit StringLiteral(String value) |