mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibJS: Add make_handle({Nonnull,}GCPtr<T>) overloads
This commit is contained in:
parent
029db614e3
commit
2a66fc6cae
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/linusg
Commit: 2a66fc6cae
Pull-request: https://github.com/SerenityOS/serenity/pull/16498
Reviewed-by: https://github.com/trflynn89 ✅
5 changed files with 18 additions and 4 deletions
|
@ -3778,7 +3778,7 @@ ThrowCompletionOr<Value> TaggedTemplateLiteral::get_template_object(Interpreter&
|
|||
MUST(template_->set_integrity_level(Object::IntegrityLevel::Frozen));
|
||||
|
||||
// 15. Append the Record { [[Site]]: templateLiteral, [[Array]]: template } to templateRegistry.
|
||||
m_cached_values.set(&realm, make_handle(template_.ptr()));
|
||||
m_cached_values.set(&realm, make_handle(template_));
|
||||
|
||||
// 16. Return template.
|
||||
return template_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue