mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibJS: Don't require Interpreter& in PropertyName and StringOrSymbol
This commit is contained in:
parent
1df18c58f5
commit
b9793e603c
5 changed files with 8 additions and 8 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue