The `Local::Cast()` docs mention that it is only available on a subclass, I thought that may have been my issue however updating the example still reproduced the seg fault:
Local<Value> val = String::NewFromUtf8(isolate, "Hello", v8::NewStringType::kNormal) .ToLocalChecked(); Persistent<Value> persistentVal(isolate, val); persistentVal.Get(isolate)->IsString(); // seg fault On Monday, 24 February 2020 13:35:37 UTC-5, Joel Scarfone wrote: > > V8 Version: 8.0.426.23 > > Hi all! When updating V8 I found a segmentation fault in tests. I managed > to reproduce it with the following code (initialization code stripped, can > provide full example upon request): > > Local<String> str = String::NewFromUtf8(isolate, "Hello", > v8::NewStringType::kNormal) > .ToLocalChecked(); Local<Value> val = Local<Value>::Cast(str); > Persistent<Value> persistentVal(isolate, val); > persistentVal.Get(isolate)->IsString(); // seg fault > > > This worked on previous version. Is this now invalid? > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/07d0deb5-72ce-4ea6-a0d6-659dd93e350b%40googlegroups.com.