I am trying to understand Google V8 javascript engine, I went through https://developers.google.com/v8/get_started which lets javascript code be understood and executed. I am not getting how the events in javascript like Mouse click, Mouse over etc are interpreted by V8. I came across Nodejs Event Loop and this http://html5tv.rot13.org/JSConf.eu-Node.js.html , where later is the event loop for node.js can any point to something which can me a clear picture
Asked
Active
Viewed 1,366 times
1 Answers
1
Javascript has no such things as events.
Stuff like mouse events in the browser are given by the browser DOM, not Javascript. In Google Chrome for example they are implemented in WebKit/Blink

Esailija
- 138,174
- 23
- 272
- 326
-
What about canvas.addEventClickListener(event) this is in javascript how this is handled, i dont think this is handled in dom – Rohit Nov 08 '13 at 07:06
-
@0'cool.. nope, this is what javascript has http://ecma-international.org/ecma-262/5.1/ – Esailija Nov 08 '13 at 08:55
-
I went through ecma standard, Still it has nothing to do with event. i just want to know that if i add any event listener in js how does v8(or any other js engine) understand that if any event is fired – Rohit Nov 08 '13 at 09:54
-
@0'cool.. events are not in js engine but browser dom for example WebKit/Blink – Esailija Nov 08 '13 at 11:18