[modules] Fix NewJSModuleNamespace to avoid GC being able to see incomplete JSModuleNamespace.
A GC could happen when creating the Module string, which would cause the JSModuleNamespace to be seen in an incomplete state. Instead make this string a root object so that we don't need to allocate it during NewJSModuleNamespace construction. BUG=v8:1569 Review-Url: https://codereview.chromium.org/2631223002 Cr-Commit-Position: refs/heads/master@{#42393}
Showing
Please
register
or
sign in
to comment