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:
parent
d8e944e899
commit
faac43597a
11 changed files with 33 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue