Skip to content

Javascript return values discrepancies #105

@TcT2k

Description

@TcT2k

While I am integrating WebView2 into wxWidgets somebody came across the following discrepancies in javascript return values between Edge and Edge via WebView2 APIs ExecuteScript(). I'm pretty sure these are a problem in the WebView2 API:

A small javascript function f(){var person = new Object();}f(); returns this:

Return undefined
Edge backend: "null"
IE backend: "undefined"
Edge browser: "undefined"

This script returns function f(){var d = new Date('10/08/2017 21:30:40'); var tzoffset = d.getTimezoneOffset() * 60000; return new Date(d.getTime() - tzoffset);}f();:

Return date
Edge backend: "{}"
Edge browser: "Sun Oct 08 2017 23:30:40 GMT+0200 (Central European Summer Time)"
IE 11 browser: "Sun Oct 08 2017 23:30:40 GMT+0200 (Central Europe Daylight Time)"
Firefox: "Sun Oct 08 2017 23:30:40 GMT+0200 (Central European Summer Time)"

wxWidgets/wxWidgets#1700 (comment)

AB#28632017

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-lowWe have considered this issue and decided that we will not be able to address it in the near future.trackedWe 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