[subset] Drop scripts that are not in the layout_scripts list.

This commit is contained in:
Garret Rieger 2022-06-30 21:37:42 +00:00
parent 38e81f2be9
commit 587969af42
1 changed files with 2 additions and 0 deletions

View File

@ -764,6 +764,8 @@ struct Script
{
TRACE_SUBSET (this);
if (!l->visitScript ()) return_trace (false);
if (tag && !c->plan->layout_scripts->has (*tag))
return false;
auto *out = c->serializer->start_embed (*this);
if (unlikely (!out || !c->serializer->extend_min (out))) return_trace (false);