Comments (3)
no longer seg faults but does not work as intended either.
timer-reject.js has
/**
- @file timer-reject.js
-
Support code timer-reject.bash
- @author Wes Garland, [email protected]
- @Date July 2023
*/
setTimeout(async () => { throw new Error('goodbye') }, 600);
setTimeout(async () => { console.warn('this should not fire') }, 2000);
console.error('hello');
When running I get
poetry run pmjs timer-reject.js
hello
Future exception was never retrieved
future: <Future finished exception=SpiderMonkeyError('Error in file /home/philippe/Sources/PythonMonkey/timer-reject.js, on line 8:\nError: goodbye\nStack Trace: \n @/home/philippe/Sources/PythonMonkey/timer-reject.js:8:32\n')>
pythonmonkey.SpiderMonkeyError: Error in file /home/philippe/Sources/PythonMonkey/timer-reject.js, on line 8:
Error: goodbye
Stack Trace:
@/home/philippe/Sources/PythonMonkey/timer-reject.js:8:32
this should not fire
from pythonmonkey.
similarly in node.js:
philippe@calypso:~$ node
Welcome to Node.js v18.19.0.
Type ".help" for more information.
setTimeout(async () => { throw new Error('goodbye') }, 600);
Timeout {
_idleTimeout: 600,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 1671,
_onTimeout: [AsyncFunction (anonymous)],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: true,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 24,
[Symbol(triggerId)]: 6
}
setTimeout(async () => { console.warn('this should not fire') }, 2000);
Timeout {
_idleTimeout: 2000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 1675,
_onTimeout: [AsyncFunction (anonymous)],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: true,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 26,
[Symbol(triggerId)]: 6
}
console.error('hello');
hello
undefined
Uncaught Error: goodbye
this should not fire
from pythonmonkey.
@wesgarland it seems the expectation is incorrect as the Error does not propagate all the way up and terminate the environment
from pythonmonkey.
Related Issues (20)
- JS object get is always shadowed HOT 3
- Review TODOs
- Expanded Cross Language Iterator Support HOT 2
- free(): invalid pointer after using dcp-client HOT 5
- Unstable xhr test HOT 1
- PyTypeFactory return type leak
- DCP-client: Exception in callback JSFunctionProxy.timerJobWrapper and Spidermonkey uncaught exception: out of memory HOT 3
- Warning: keepalive failed for compute groups service Error: Assertion failure HOT 2
- job-launch.py hangs at times after uploading step HOT 1
- DCPError: cannot send message on closed connection
- Additional requests are made after computation is finished in job-launch.py HOT 1
- implement toString on javascript functions HOT 9
- DCPError: no transports defined HOT 3
- CI: MAC OS 11 runners failing in test_event_loop HOT 2
- Clean up open PRs HOT 5
- XHR: aiohttp calls must support HTTP Keep-Alive HOT 2
- URL string corruption from JS to Python in XHR
- AddressSanitizer: heap-use-after-free in timerJobWrapper HOT 1
- Add timeout debug verbose like those in dcp-timer.js which we are replacing, like we do in xhr HOT 1
- Unexpected error in multithreading 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 pythonmonkey.