https://codereview.chromium.org/649563006/diff/20001/include/v8.h
File include/v8.h (right):
https://codereview.chromium.org/649563006/diff/20001/include/v8.h#newcode520
include/v8.h:520: V8_INLINE void SetPhantom(P* parameter,
Shouldn't phantom reference be in its own class, separate from
PersistentBase to completely disallow dereferencing?
What prevents the embedder stash a phantom reference p and then just
dereference it in the finalizer like this:
Local<Object> obj = Local<Object>::New(isolate, p)?
and access a potentialy dead object (*obj)
https://codereview.chromium.org/649563006/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.