Version: (using KDE 4.2.0) OS: Linux Installed from: Unlisted Binary Package attached is a test case The test case defines a simple object that initializes itself with a single property. There are 3 functions that initialize a new instance. The object is called "Sidebar". When initializing a "Sidebar" instance and trying to store it in a variable called "sidebar" the initialization fails. The variable has the type "[object sidebar]" instead of "[object Object]", and the property is undefined. Using any other name for the variable (even "sideBar") works as expected. I discovered this trying to debug the failure of the Pitchfork MPD Client and was able to reduce the problem to this simple test case. It should be noted that this is a regression. I upgraded straight from kde 3.5.9 to kde 4.2, and the client functions perfectly in 3.5.9. Thanks, Michael
Created attachment 31216 [details] test case
OK, I'm even more confused now. It seems that the name of the object doesn't matter. All that seems to matter is the use of the variable name sidebar. Is this a reserved word?
It's a browser window object property (Mozilla extension). I should make it writeable, I guess.
If it's a mozilla extension then it should be noted that this test case produces the results I was expecting in firefox.
SVN commit 926141 by orlovich: We want the sidebar property writeable (but also DontEnum) BUG: 183993 M +1 -1 kjs_window.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=926141
SVN commit 926142 by orlovich: Merged revision 926141: We want the sidebar property writeable (but also DontEnum) BUG: 183993 M +1 -1 kjs_window.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=926142
SVN commit 926144 by orlovich: Update for 183993 CCBUG:183993 M +8 -4 baseline/ecma/readonly.html-dom M baseline/ecma/readonly.html-dump.png M +13 -10 baseline/ecma/readonly.html-render M +2 -0 tests/ecma/readonly.html WebSVN link: http://websvn.kde.org/?view=rev&revision=926144