summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/PropertyName.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/PropertyName.h')
-rw-r--r--Libraries/LibJS/Runtime/PropertyName.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/PropertyName.h b/Libraries/LibJS/Runtime/PropertyName.h
index 9627f2db88..76c25eb9d0 100644
--- a/Libraries/LibJS/Runtime/PropertyName.h
+++ b/Libraries/LibJS/Runtime/PropertyName.h
@@ -40,14 +40,14 @@ public:
Symbol,
};
- static PropertyName from_value(Interpreter& interpreter, Value value)
+ static PropertyName from_value(GlobalObject& global_object, Value value)
{
if (value.is_symbol())
return &value.as_symbol();
if (value.is_number())
return value.as_i32();
if (!value.is_empty())
- return value.to_string(interpreter);
+ return value.to_string(global_object);
return {};
}