[Webkit-unassigned] [Bug 94912] New: defineProperty to global cached variable on global object does not effect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 24 01:15:50 PDT 2012


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

           Summary: defineProperty to global cached variable on global
                    object does not effect
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: utatane.tea at gmail.com


Currently JSGlobalObject::defineOwnProperty doesn't handle variables cached as global register correctly.

So for example,

// test.js
var i = 0;
print(i);  // 0
print(this.i);  // 0
Object.defineProperty(this, 'i', {
  value: 1
});
print(i);  // 0
print(this.i);  // 1

$ jsc test.js

To fix this, we should store defined value to global register correctly.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list