Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360407

Summary: undefined is not a function
Product: z_Archived Reporter: pf yu <pfyu>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: greer, hjiyong, jqian, pfyu, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description pf yu CLA 2011-10-10 05:17:09 EDT
Build Identifier: 201110090901

undefined is not a function

Reproducible: Always

Steps to Reproduce:
1. Check out project "org.eclipse.edt.eunit.test" from kan-cvs.
2. Add JavaScript Generator to the project.
3. Clean the whole workspace.
4. Generate EGL test driver for JavaScript
5. The error exists in:
fvt.datatypes.TestAnyTypeLib_rui
fvt.datatypes.TestCollectionsLib_rui
fvt.datatypes.TestNullableNumericLib_rui
fvt.datatypes.TestNullableStringLib_rui
fvt.externalTypes.TestExternalTypeLib_rui
fvt.Json.JSONFixedNumTestLib_rui
fvt.Json.JSONTestsLib_rui
fvt.operators.TestNewLib_rui
fvt.operators.TestSetValuesLib_rui
fvt.primitives.TestDictionaryLib_rui
fvt.xml.DCR43684Lib_rui
fvt.xml.FlexEmployeeLib_rui
Comment 1 Brian Svihovec CLA 2011-10-10 15:44:59 EDT
Setting as P1/Major due to the number of test cases affected.
Comment 2 Scott Greer CLA 2011-10-18 15:10:54 EDT
Where exactly is "undefined is not a function" occurring -- where does it appear?
Comment 3 Scott Greer CLA 2011-10-19 22:45:43 EDT
TestExecutionLib.egl (which is part of the eunit framework) had a compile error in it;  this error went away when I regenerated this part.  After this, the various generated _rui handlers executed successfully, except for those which had compile errors in the eunit test project.  

So it works in my development environment which is fully sync'ed to CVS and has no private / local fixes.  

I suspect there has been a recent fix in JS gen / compile / build that explains why the compile error went away when I regenerated.
Comment 4 pf yu CLA 2011-10-24 01:58:35 EDT
Verified in build 20111023