question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

>>> js2py.eval_js('(+(+!+[]+[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+[!+[]+!+[]]+[+[]])+[])[+!+[]]')
u'1'
>>>

should translate to . instead it translated to 1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
PiotrDabkowskicommented, Apr 3, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found