mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +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
|
@ -68,7 +68,7 @@ static Element* impl_from(JS::Interpreter& interpreter)
|
|||
JS::Value ElementWrapper::inner_html_getter(JS::Interpreter& interpreter)
|
||||
{
|
||||
if (auto* impl = impl_from(interpreter))
|
||||
return JS::js_string(interpreter.heap(), impl->inner_html());
|
||||
return JS::js_string(interpreter, impl->inner_html());
|
||||
return {};
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ void ElementWrapper::inner_html_setter(JS::Interpreter& interpreter, JS::Value v
|
|||
JS::Value ElementWrapper::id_getter(JS::Interpreter& interpreter)
|
||||
{
|
||||
if (auto* impl = impl_from(interpreter))
|
||||
return JS::js_string(interpreter.heap(), impl->attribute("id"));
|
||||
return JS::js_string(interpreter, impl->attribute("id"));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue