Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356868 - JavaScipt gen generates in correct code for String.IndexOf
Summary: JavaScipt gen generates in correct code for String.IndexOf
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 18:00 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Vincens CLA 2011-09-06 18:00:22 EDT
Given the EGL
		str string = "joe";
		if(str.indexof("jo") > 0)

Javascript gen generates:
            var str = "";
            str = "joe";
            var eze$Temp1 = "";
            eze$Temp1 = "jo";
            if (((egl.egl.lang.EString.indexOf(str, eze$Temp1) > 0))) {


egl.egl.lang.EString.indexOf is undefined
Comment 1 Joseph Vincens CLA 2011-09-08 08:24:36 EDT
added the missing function