[Webkit-unassigned] [Bug 187092] New: Inconsistent output compared with other JS engines

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 27 06:05:21 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=187092

            Bug ID: 187092
           Summary: Inconsistent output compared with other JS engines
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sunlili at ict.ac.cn

Hello,
The following code behaves strangely (inconsistent with other engines).

v1 = new (Float64Array)();
v2 = {
    valueOf : function () {
        v3.y = "bar";
        return 42; }
};
v3 = v1;
v3[0] = v2;
print(JSON.stringify(v1));

In Safari, output is
{"y":"bar"}

However, in V8 and Firefox, output is
{}

BT group
2018.6.27

-- 
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/20180627/9a646802/attachment-0001.html>


More information about the webkit-unassigned mailing list