Comments (4)
from as3shebang.
Not only we want to catch this error but we also want to colorize it like other errors.
but here the problems
- the error occurs outside the script scope
- a try/catch around
Runtime.eval()
can not catch such errors
from as3shebang.
a try/catch around Runtime.eval() can not catch such errors
because what happen internally is that the C++ already does a try/catch
and if an error is found it then stringify it to the script output.
by replacing Runtime.eval()
with Runtime.returnEval()
we can return the output of the script into a string
and then we can test for some strings to check if a VerifyError
occured
then we can format the output as if it was an internal script error
from as3shebang.
we do catch the error
but we remove the stacktrace (as it is not related to the script)
we apply options if they are enabled
etc.
other example with DEBUG enabled
from as3shebang.
Related Issues (8)
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 as3shebang.