diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-06-28 03:53:35 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-28 08:55:14 +0100 |
commit | e2e695bc9f23e4f12b05026b82e5c6eab52562d2 (patch) | |
tree | f4716f730409f1a3b48e40000c7729296a6d3e34 /Userland/Libraries/LibJS/Runtime/GlobalObject.h | |
parent | 581f20e6f2425e1bdbee04218f6bfa1b859f0ed2 (diff) | |
download | serenity-e2e695bc9f23e4f12b05026b82e5c6eab52562d2.zip |
LibJS: Add and use the %ThrowTypeError% intrinsic
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalObject.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/GlobalObject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.h b/Userland/Libraries/LibJS/Runtime/GlobalObject.h index 6823676bce..ec1c5afa4a 100644 --- a/Userland/Libraries/LibJS/Runtime/GlobalObject.h +++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.h @@ -38,6 +38,8 @@ public: FunctionObject* eval_function() const { return m_eval_function; } + FunctionObject* throw_type_error_function() const { return m_throw_type_error_function; } + #define __JS_ENUMERATE(ClassName, snake_name, PrototypeName, ConstructorName, ArrayType) \ ConstructorName* snake_name##_constructor() { return m_##snake_name##_constructor; } \ Object* snake_name##_prototype() { return m_##snake_name##_prototype; } @@ -99,6 +101,7 @@ private: #undef __JS_ENUMERATE FunctionObject* m_eval_function; + FunctionObject* m_throw_type_error_function; }; template<typename ConstructorType> |