jsprime icon indicating copy to clipboard operation
jsprime copied to clipboard

ReferenceError: convertedFunction is not defined

Open jasonify opened this issue 11 years ago • 7 comments

I just tried out the node server.js with some code (about 2k loc):

ReferenceError: convertedFunction is not defined

/home/jason/playground/jsprime/jsprime-node/engine.js:149 convertedFunction.push(newFunction2); ^ ReferenceError: convertedFunction is not defined at Object.asignFunctionReturnValue (/home/jason/playground/jsprime/jsprime-node/engine.js:149:13) at IncomingMessage. (/home/jason/playground/jsprime/jsprime-node/server.js:71:18) at IncomingMessage.EventEmitter.emit (events.js:92:17) at _stream_readable.js:920:16 at process._tickCallback (node.js:415:13)

Any ideas?

Thanks

jasonify avatar Jan 30 '14 22:01 jasonify

​Hi Jason,

Does it work in the browser version?​

Thanks

Best Regards!

Nishant Das Patnaik

On Fri, Jan 31, 2014 at 3:39 AM, Jason [email protected] wrote:

I just tried out the node server.js with some code (about 2k loc):

ReferenceError: convertedFunction is not defined

/home/jason/playground/jsprime/jsprime-node/engine.js:149 convertedFunction.push(newFunction2); ^ ReferenceError: convertedFunction is not defined at Object.asignFunctionReturnValue (/home/jason/playground/jsprime/jsprime-node/engine.js:149:13) at IncomingMessage. (/home/jason/playground/jsprime/jsprime-node/server.js:71:18) at IncomingMessage.EventEmitter.emit (events.js:92:17) at _stream_readable.js:920:16 at process._tickCallback (node.js:415:13)

Any ideas?

Thanks

— Reply to this email directly or view it on GitHubhttps://github.com/dpnishant/jsprime/issues/10 .

dpnishant avatar Jan 31 '14 09:01 dpnishant

Hey,

No, neither seem to work unfortunately. The browser version hangs and crashes the tab / window.

Really cool effort for this project.

jasonify avatar Jan 31 '14 16:01 jasonify

The array just isn't defined anywhere in the file. Not sure what that line is supposed to say...

btoews avatar Mar 28 '14 21:03 btoews

It is defined on analyzer.js file and that was included in HTML.

On Sat, Mar 29, 2014 at 2:41 AM, Ben Toews [email protected] wrote:

The array just isn't definedhttps://github.com/dpnishant/jsprime/blob/master/jsprime-node/engine.js#L149. Not sure what that line is supposed to say...

Reply to this email directly or view it on GitHubhttps://github.com/dpnishant/jsprime/issues/10#issuecomment-38968507 .

sarathisahoo avatar Mar 29 '14 07:03 sarathisahoo

Yeah, the non-node version seems to work better.

btoews avatar Mar 29 '14 10:03 btoews

No further development happened from the core team.....That is the reason, And I'm sorry as a core member can't give enough time for the development :(

On Sat, Mar 29, 2014 at 4:08 PM, Ben Toews [email protected] wrote:

Yeah, the non-node version seems to work better.

Reply to this email directly or view it on GitHubhttps://github.com/dpnishant/jsprime/issues/10#issuecomment-38992059 .

sarathisahoo avatar Mar 29 '14 18:03 sarathisahoo

Add ** exports.convertedFunction= convertedFunction;** in analyzer.js This would work

TejaswiniU avatar Dec 28 '18 06:12 TejaswiniU