DescriptionDEFINE_STATIC_LOCAL(): assert against illegal use of GCed types.
A singleton static local cannot refer to a Blink garbage collected
object directly, as that fails to keep the singleton alive. A
strong off-heap persistent reference, a Persistent<> variant
or a persistent collection type, is required.
Add a static assert which catches out such incorrect uses of
GCed types.
R=haraken
BUG=
Committed: https://crrev.com/6a4cb616366c7ad3a9b969ab52774a11e4dd1cf8
Cr-Commit-Position: refs/heads/master@{#368313}
Patch Set 1 #
Messages
Total messages: 11 (5 generated)
|