summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/StringOrSymbol.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/StringOrSymbol.h')
-rw-r--r--Libraries/LibJS/Runtime/StringOrSymbol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/StringOrSymbol.h b/Libraries/LibJS/Runtime/StringOrSymbol.h
index 2ebc189023..3027aca0cd 100644
--- a/Libraries/LibJS/Runtime/StringOrSymbol.h
+++ b/Libraries/LibJS/Runtime/StringOrSymbol.h
@@ -34,12 +34,12 @@ namespace JS {
class StringOrSymbol {
public:
- static StringOrSymbol from_value(Interpreter& interpreter, Value value)
+ static StringOrSymbol from_value(GlobalObject& global_object, Value value)
{
if (value.is_symbol())
return &value.as_symbol();
if (!value.is_empty())
- return value.to_string(interpreter);
+ return value.to_string(global_object);
return {};
}