-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't convert function to string properly (JavaScript) #607
Comments
This is a Duktape issue. |
Uh, so I assume it can't be easily fixed from here? |
You do also know that whitespace in functions are included when it's converted to string? Also see this. var program="\
function(){\n\
print(\"Hello.\",0,0);\n\
}"; |
Yeah, but I have a whole set of system software built the way it is, plus it just makes the thing longer. |
I can't help you here for now because I don't know what you'd do. I'm not sure if there's a better JavaScript engine that TIC-80 could use too. |
I understand. I mean, it ain't like using the terminal for checking sizes of programs is important in a graphical operating system, so I actually don't care too much about it :P |
I wrote an operating system-like thing, and wanted it's terminal to show the lengths of the programs (which are stored as functions), however everything I tried returns function () { [ecmascript code] }.
The text was updated successfully, but these errors were encountered: