Commit Detail
Commit 8514ca1
Restrict JSG_STRUCT from having v8 local members Make it a compile time error for a JSG_STRUCT to have members that are v8 locals (includig JsValues). It's not entirely safe for a JSG_STRUCT to use v8 locals because the struct may outlive the v8 HandleScope in which the locals were created. Let's enforce it at compile time. Update src/workerd/jsg/struct-test.c++