Comments (5)
To do that, you would have to write a 'native function' that took a filename,
loaded the file into a string, and then called tiny js's execute method on it.
It is quite easy, but there are no built in filesystem access functions
Original comment by [email protected]
on 24 Dec 2012 at 4:09
from tiny-js.
thank you .. and is it going to be recursive? because 'native function' is
going to execute first file but still there is another call inside this file ..
Original comment by [email protected]
on 24 Dec 2012 at 6:32
from tiny-js.
It should be, as long as you don't do anything that isn't re-entrant in your
function.
Original comment by [email protected]
on 24 Dec 2012 at 10:17
from tiny-js.
so the native function should be able to fread all the files including inner
files into a big stream and execute it all at once. correct?
Original comment by [email protected]
on 24 Dec 2012 at 10:23
from tiny-js.
Dear marianne,
I just added scCmdCall function into the script.cpp file and also registered
the native function. inside the scCmdCall function I'm parsing a test file and
executing the buffer but unfortunately keep getting an error.
I just attached the modified script.cpp file here. would you please take a look
at this script and let me know what I'm doing is wrong?
-Roozbeh
Original comment by [email protected]
on 25 Dec 2012 at 8:58
Attachments:
from tiny-js.
Related Issues (20)
- Null pointer dereference
- Null pointer dereference
- Null pointer dereference
- Null pointer dereference
- Null pointer dereference
- Null pointer dereference
- Null pointer dereference
- heap-use-after-free
- heap-use-after-free
- Null pointer dereference
- Null pointer dereference
- Division Exception
- Null pointer dereference
- Null pointer dereference
- Null pointer dereference
- Null pointer dereference
- heap-use-after-free
- heap-use-after-free HOT 5
- Null pointer dereference
- integer arithmetic HOT 2
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 tiny-js.