1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

LibJS: Add js_string(Interpreter&, String)

This commit is contained in:
Andreas Kling 2020-04-04 12:57:37 +02:00
parent d8e944e899
commit faac43597a
11 changed files with 33 additions and 26 deletions

View file

@ -50,7 +50,7 @@ Value DateConstructor::call(Interpreter& interpreter)
auto date = construct(interpreter);
if (!date.is_object())
return {};
return js_string(interpreter.heap(), static_cast<Date&>(date.as_object()).string());
return js_string(interpreter, static_cast<Date&>(date.as_object()).string());
}
Value DateConstructor::construct(Interpreter& interpreter)