[Webkit-unassigned] [Bug 220574] New: A possible bug about attribute modification

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 12 17:58:08 PST 2021


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

            Bug ID: 220574
           Summary: A possible bug about attribute modification
           Product: WebKit
           Version: WebKit Local Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nisl_grammarly1 at 163.com

#version: dbae081(https://github.com/WebKit/WebKit-http/commit/dbae081ad7e22d9ab61edf2f337f6c2bb593c7f8)

#Testcase:
a = {
    get p() {print('get');},
    p: 2,
    set p(b) {print('set');}
};

a.p = 0;
print('a.p:', a.p);

#Command:
./webkit/WebKitBuild/Release/bin/jsc testcase.js

#Output:
a.p: 0

#Expected output:
set
a.p: undefined

#Description:
When executing this test case, other engines (such as v8, SpiderMonkey, chakra, etc.) seem to call the 'get' method defined in the 'a' object and output the value of 'a.p' as 'undefined', but JavascriptCore changed the value of 'a.p' to 0. Maybe this is a bug of JavascriptCore.

-- 
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/20210113/ef5f3da7/attachment.htm>


More information about the webkit-unassigned mailing list