jsfuck issue...
See original GitHub issue>>> js2py.eval_js('(+(+!+[]+[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+[!+[]+!+[]]+[+[]])+[])[+!+[]]')
u'1'
>>>
should translate to .
instead it translated to 1
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (4 by maintainers)
Top Results From Across the Web
Issues · aemkei/jsfuck - GitHub
Contribute to aemkei/jsfuck development by creating an account on GitHub. ... Loading jsfuck causes problems with webpages ,May cause the page to be...
Read more >JSF*ck - Does code weirdness affect execution performance?
For those who are reading this out of the context, I'm going to spend a while explaining the problem before jumping to tests....
Read more >JSFuck - Write any JavaScript with 6 Characters: []()!+
JSFuck is an esoteric and educational programming style based on the atomic parts of JavaScript. It uses only six different characters to execute...
Read more >@gsmlg/jsfuck - npm
JSFuck is an esoteric and educational programming style based on the atomic parts of JavaScript. It uses only six different characters to ...
Read more >Interview with Martin Kleppe - Esoteric.Codes
Martin Kleppe is best known as the creator of JSFuck, an esoteric coding style ... and many people came up with their own...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m working on it.
doubleToExponentialCString
: https://github.com/v8/v8/blob/9010424ff584c41d64a6589a7914f5bba1332db4/src/conversions.cc#L1115CreateExponentialRepresentation
: https://github.com/v8/v8/blob/9010424ff584c41d64a6589a7914f5bba1332db4/src/conversions.cc#L1083tests: https://github.com/v8/v8/blob/master/test/webkit/number-toExponential.js
Thanks, I will not have time to work on it in the next week (enough coding at work…). The issue is due to the difference in Number.prototype.toString implementation between JS and Python. They are quite similar, but there are edge cases. Exact specification for JS documentation can be found here: https://www.ecma-international.org/ecma-262/5.1/#sec-9.8.1