1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibJS: Don't require Interpreter& in PropertyName and StringOrSymbol

This commit is contained in:
Andreas Kling 2020-09-27 19:55:21 +02:00
parent 1df18c58f5
commit b9793e603c
5 changed files with 8 additions and 8 deletions

View file

@ -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 {};