[Webkit-unassigned] [Bug 172939] New: Maintain an Invariant that a JSObject always has a GlobalObject

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 5 15:55:59 PDT 2017


            Bug ID: 172939
           Summary: Maintain an Invariant that a JSObject always has a
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: sbarati at apple.com

JavaScriptCore should maintain an invariant where a JSObject's Structure should always have a GlobalObject.

There are a few cases right now of Objects/Structures that do not have GlobalObject:

Structures created in VM.cpp:

    exceptionStructure.set(*this, Exception::createStructure(*this, 0, jsNull()));
    terminatedExecutionErrorStructure.set(*this, TerminatedExecutionError::createStructure(*this, 0, jsNull()));
    iterationTerminator.set(*this, JSFinalObject::create(*this, JSFinalObject::createStructure(*this, 0, jsNull(), 1)));

GlobalObject structures themselves in creation:

    jsc's GlobalObject
    ... Probably Others for JSContext / Workers ...

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170605/5ee183a6/attachment.html>

More information about the webkit-unassigned mailing list