Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 155138 Details for
Bug 298653
[language support] Defining constructor by assignment leaks properties to global object
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Testcase
constructor-property-test.js.js (text/javascript), 752 bytes, created by
Laurens Holst
on 2009-12-30 13:46:06 EST
(
hide
)
Description:
Testcase
Filename:
MIME Type:
Creator:
Laurens Holst
Created:
2009-12-30 13:46:06 EST
Size:
752 bytes
patch
obsolete
>/** > * @fileoverview > * > * Test case for class property inference. > * > * Class_A properly shows the name_A property as a > * class member. > * > * Class_B shows the name_B property as a global property. > * > * Class_C shows the name_C property both as a global > * property and as a class member. > */ >(function() { > > // recognised as constructor > function Class_A() { > this.name_A = 'A'; > } > > Class_A.prototype.method1 = function() {}; > > // not recognised as constructor > var Class_B = function() { > this.name_B = 'B'; > }; > > Class_B.prototype.method1 = function() {}; > > // recognised as constructor > var Class_C; > Class_C = function() { > this.name_C = 'C'; > }; > > Class_C.prototype.method1 = function() {}; > >})();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 298653
: 155138