Comments (5)
Second bug caught.
Thanks for reporting these! All I need is the code snippet to be pasted into index.html (and pasted into the console for comparison). No need for a screenshot.
from js-interpreter.
This is another one, involving isGetter
:
try {
var foo = {};
if (true) {
alert((foo.a || foo.b).c);
}
} catch(e) {
alert('caught ' + e.message);
}
from js-interpreter.
More edge cases; JSON.parse(undefined)
:
try {
JSON.parse(undefined);
} catch (e) {
alert('caught');
}
from js-interpreter.
First and third errors are now caught. Will deal with the second one tomorrow.
from js-interpreter.
Great work Neil! Sorry to be the source of so many reports - especially given most blockly workflows probably won't trigger them! Is the format of the bug reports above the most useful to you, or can I do something to improve them?
Your demo page has been super-useful for tracking these down to produce minimal test-cases 👍
from js-interpreter.
Related Issues (20)
- Replace string with regexp return undefined HOT 2
- [QUESTION] How to throw exception from createAsyncFunction ? HOT 1
- Include in REACT typescript ? HOT 4
- How to get the function in the return value HOT 2
- Viability as an Expression/Predicate Interpreter? HOT 1
- A named function, existing as a variable in its own local scope, shadows the global declaration HOT 3
- Can we use destructuring? HOT 2
- Try catch syntax does not work correctly when using native syntax HOT 2
- Bug report about error message HOT 10
- Do you plan to support function replacer in JSON.stringify? HOT 3
- Make js-interpreter ready for node and NPM HOT 3
- IPC between sandbox and parent process (Node.js) HOT 2
- Tasks created through createTask_ (such as when using setTimeout) are incorrectly interpreted as throwing their return values. HOT 2
- how to pass multiple parameters and/or arrays/objects to functions? HOT 2
- Notion of preload HOT 2
- Support for template literals and tag functions HOT 1
- Support for Arrow Functions HOT 1
- Support for Proxies? HOT 1
- Support for Primises? HOT 1
- Advice for a repeating async function 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 js-interpreter.