callgraph icon indicating copy to clipboard operation
callgraph copied to clipboard

async and await not supported

Open laurent-33 opened this issue 5 years ago • 5 comments

that lead to errors when parsing file with uglify

laurent-33 avatar Nov 23 '20 14:11 laurent-33

Thanks for the heads up! I'm definitely open to adding async/await.

gunar avatar Nov 23 '20 14:11 gunar

In fact I think it is due to uglify that maybe does not support recent javascript versions like ES8 ?

I have seen there is another problem with function declaration like this :

                         const blobimage_from_name = (blob_images, name) => {...}

I must modify to :

                         function blobimage_from_name(blob_images, name) {...}

to have it works and finaly get my gaph :)

laurent-33 avatar Nov 23 '20 14:11 laurent-33

Can I ask you why you're interested in generating a callgraph for your code? (market research 😂)

On Mon, Nov 23, 2020 at 2:35 PM laurent-33 [email protected] wrote:

In fact I think it is due to uglify that does not support recent javascript versions like ES8

I saw there is a problem too with function declaration like this :

const blobimage_from_name = (blob_images, name) => {...}

I must modify to

function blobimage_from_name(blob_images, name) {...}

to have it works and finaly get my gaph :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gunar/callgraph/issues/21#issuecomment-732201058, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2UDXRBEEPI42P4HNWGZHTSRJXMHANCNFSM4T7RXWDQ .

gunar avatar Nov 23 '20 14:11 gunar

of course, it is to show a dude in my team how work the script then he can quiclky see the graph, without I explain all details to him

PS : maybe not uglify the pb but can be babel too (i saw in the code of parser.js babel es6 ans es2015 preset ... but I dont know yet what that means)

laurent-33 avatar Nov 23 '20 15:11 laurent-33

Thanks that's helpful!

On Mon, 23 Nov 2020, 15:33 laurent-33, [email protected] wrote:

of course, it is to show a dude in my team how work the script then he can quiclky see the graph, without I explain all details to him

PS : maybe not uglify the pb but can be babel too (i saw in the code of parser.js babel es6 ans es2015 preset ... but I dont know yet what that means)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gunar/callgraph/issues/21#issuecomment-732235977, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2UDXU2NRQ4SVW5PEBY4W3SRJ6FXANCNFSM4T7RXWDQ .

gunar avatar Nov 23 '20 15:11 gunar