tiny-js
tiny-js copied to clipboard
A simple single-file javascript interpreter written in C++
Is there a way to get the name of an object? For e.g if i create an object like this ```Javascript var myBaseObject = { name: "Test", value: 3 };...
There is a bug when you compile it. It fails on Fedora. [TinyJSPatch.txt](https://github.com/MarcoLizza/tiny-js/files/5857953/TinyJSPatch.txt)
commit db198df2d3945e785438aaae6747daedcd7c654f **Error details (console output)** `make g++ -c -g -Wall -rdynamic -D_DEBUG run_tests.cpp -o run_tests.o g++ -c -g -Wall -rdynamic -D_DEBUG TinyJS.cpp -o TinyJS.o g++ -c -g -Wall -rdynamic...
I have tried to compile TinyJS on my Mac, but got: ``` Script.cpp:50:5: error: use of undeclared identifier 'CTinyJS'; did you mean 'TinyJS'? CTinyJS *js = (CTinyJS*)userdata; ^~~~~~~ TinyJS ./TinyJS_Functions.h:35:11:...