Comments (4)
I think hsm did have this feature at some point but I removed it because it broke js semantics. I can probably add it back so long as it does not replace object literals inside the bodies of loops and functions. the reason is that every time an object literal is evaluated, it's supposed to be a new instance
from hackmud-script-manager.
I should verify that with quine cheats
assert({} != {})
from hackmud-script-manager.
an interesting quirk is that
export default function() {
return { foo: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
}
is quine cheatable. it's the empty {}
object literal that's causing the parent object not to be quine cheatable
from hackmud-script-manager.
the same applies to empty array literals
from hackmud-script-manager.
Related Issues (20)
- ability to specify available char count so minification can do only enough quine cheating to get under
- make special comments available as options and options available as special comments
- show help in readme
- Make 0.21 Release
- when there's a folder in a user folder, look for its `index.{j,t}s`
- change `$db.i()` and friends' types from `obejct` to mongo compatible types HOT 1
- --no-minify Drastically changes the output of the script HOT 5
- k3y property not allowed in market.browse HOT 1
- `sync-macros` Nukes Every .macro File HOT 2
- drop the exports turn into a `return` feature
- Make 0.20.4 Release
- drop the main function can have name feature
- add Tips For Debugging Your Script to README
- add support for `const { bar } = $fs.foo`
- Drop support for Node.js 18 when it goes end of life HOT 1
- Global class minification results in incorrect code
- `player.d.ts` import paths use single backslash which need to be escaped or use forward slash
- make `_SCRIPT_SUBNAME` an alias for `_SCRIPT_NAME` and start moving away from `_SCRIPT_NAME`
- Support for json file import HOT 1
- polyfill `Object.hasOwn()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hackmud-script-manager.