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.

[Feature] Shuffle mangled identifier alphabet

See original GitHub issue

Example code:

function foo(bar, baz, bak, bos){
  return bar + baz * bak - bos;
}

Current output:

function a(b, c, d, e) {
    return b + c * d - e;
}

Output with shuffled alphabet:

function k(u, z, p, b) {
    return u + z * p - b;
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sanex3339commented, Jul 9, 2020

Probably, the best way to do it - is to create the new mangled-shuffled (that extends mangled generator) identifier names generator. Because if I want to change base mangled generator - a huge amount of tests will fail because the order of variable names changes. But I need to know the correct order in the tests.

I can stub base order but here so many places where I have to stub it, so the best way is to create the new generator instead.

mangled-shuffled sounds correct?

0reactions
sanex3339commented, Jul 11, 2020

Released 1.5.2 with few fixes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Name mangling - Wikipedia
In compiler construction, name mangling (also called name decoration) is a technique used to solve various problems caused by the need to resolve...
Read more >
Name mangling in C - Jens Gustedt's Blog
Name mangling in C. Most will know that C++ mangles external names in a compiler specific way such that they encode the types...
Read more >
Hashids - generate short unique ids from integers
Create short unique ids from numbers (positive numbers & zero). Allow custom alphabet as well as salt — so ids are unique only...
Read more >
Letters Shuffle - Letter Mix - Online Decoder, Solver, Translator
Tool to shuffle letters. Mixing letters of a message is enough to make it incomprehensible. It is possible to perform blocks permutations to...
Read more >
JavaScript Obfuscator Tool
JavaScript Obfuscator is a free online tool that obfuscates your source code, preventing it from being stolen and used without permission.
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