Skip to content

Compiled Function is Microsoft.ClearScript.V8.SplitProxy.V8ObjectImpl, not ScriptObject #704

Description

@commonsuppliz

I call following script with ClearScript V8.

===================================================================

    document.addEventListener('DOMContentLoaded', function () {

        const images = document.getElementsByTagName('img');


        if (images.length === 0) {
            return;
        }


        for (let i = 0; i < images.length; i++) {
            const img = images[i];


            console.log(`Img ${i + 1}: ${src}`);
           
        }
    });

====================================================================

When it loaded, function object type is not ScriptObject. It is Microsoft.ClearScript.V8.SplitProxy.V8ObjectImpl.
So, I can not call function of DOMContentLoaded, because it is not ScriptObject.

It seems a proxy issue.

Is there any work around?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions