mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibJS: Don't require Interpreter& in PropertyName and StringOrSymbol
This commit is contained in:
@@ -99,10 +99,10 @@ public:
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
Value to_value(Interpreter& interpreter) const
|
||||
Value to_value(VM& vm) const
|
||||
{
|
||||
if (is_string())
|
||||
return js_string(interpreter, as_string());
|
||||
return js_string(vm, as_string());
|
||||
if (is_symbol())
|
||||
return const_cast<Symbol*>(as_symbol());
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user