summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/Value.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/Value.h')
-rw-r--r--Libraries/LibJS/Runtime/Value.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Libraries/LibJS/Runtime/Value.h b/Libraries/LibJS/Runtime/Value.h
index ee1d3bbb90..4a04caa627 100644
--- a/Libraries/LibJS/Runtime/Value.h
+++ b/Libraries/LibJS/Runtime/Value.h
@@ -188,11 +188,13 @@ public:
PrimitiveString* to_primitive_string(Interpreter&);
Value to_primitive(Interpreter&) const;
Object* to_object(Interpreter&) const;
- bool to_boolean() const;
- Value to_number() const;
+ Value to_number(Interpreter&) const;
+ double to_double(Interpreter&) const;
i32 to_i32() const;
- double to_double() const;
+ i32 to_i32(Interpreter&) const;
size_t to_size_t() const;
+ size_t to_size_t(Interpreter&) const;
+ bool to_boolean() const;
Value value_or(Value fallback) const
{