[Webkit-unassigned] [Bug 38636] Object.defineProperty doesn't respect attributes when applied to the Global Object
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 30 15:33:06 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=38636
William J. Edney <bedney at technicalpursuit.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bedney at technicalpursuit.com
--- Comment #1 from William J. Edney <bedney at technicalpursuit.com> 2010-09-30 15:33:06 PST ---
I can confirm this bug, and its a nasty one (IE9 beta1 has the same issue and I've reported it to them as well).
One of our chief uses for this is the ability to 'lock' a global variable acting as a namespace for a library of code, such that it can't be inadvertently blown away by a user of that library forgetting to 'var' a variable of the same name:
Object.defineProperty(self, 'myLib', {writable: false});
Then 'myLib' can be used to 'hang' code off of, but can't be blown away.
Any ideas on fixage here?
Cheers,
- Bill
--
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