Skip to content

Returning Date object in javascript does'nt work #1496

Closed
@cyril-makloufi

Description

@cyril-makloufi

Description
When executing a script that return a Date object with ICoreWebView2::ExecuteScript, the result string in the handler is "{}".
With IE WebView, it seems to stringify the object in the result variable.

Version
SDK: 1.0.902-prerelease
Runtime: Microsoft Edge Canary 93.0.939.0
Framework: Win32
OS: Win 10 1909 18363.836

Repro Steps
Execute a script like "new Date('Jun 24 2016 11:55:30 GMT');". With WebView2 it returns "{}".
With IEWebView it returns the stringified date ("2016-06-24T11:55:30.000Z").

AB#34467217

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtrackedWe are tracking this work internally.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions