For questions related to JavaScript engine development. If you are simply referring to issues with JavaScript code, use the [javascript] tag instead.
Questions tagged [javascript-engine]
171 questions
0
votes
0 answers
JavaScript: What is the data structure for the call stack?
I'm writing an article about JS concurrency model and event loop. I've read many (even internally) conflicting articles regarding the data structures of the call stack and Execution Contexts.
A JavaScript engine like Google's V8 is composed of two…

André Casal
- 1,012
- 1
- 11
- 25
0
votes
1 answer
Chrome versus Edge Javascript differences
From time to time i get Javascript Files (created by use of Adobe Animate) that crashes in either chrome or edge. In some cases these files crash only in chrome, in some cases they crash only in edge. Its always RangeError: "Maximum call stack size…

fkc-ik
- 3
- 3
0
votes
1 answer
What is `delete()`?
When I use delete keyword as a function it returns boolean and if I pass anything it doesn't throw error
const foo = 0
delete(foo) // false
const bar = 1
delete(bar) // false
delete(unknown) // true
delete(5) // true
I don't understand this…

Ibrahem Alhofe
- 11
- 1
- 3
0
votes
1 answer
Does JavaScript code converted to assembly code?
I read article about how JavaScript Engine works, but there is thing that confusing me, it says the following:
JavaScript code first parsed
The source code translated to bytecode
The bytecode gets optimized
The code generator takes bytecode and…

Hayk
- 187
- 1
- 10
0
votes
1 answer
How do I evaluate JavaScript before the browser does?
I am looking for a way to get javascript code before SpiderMoney (Firefox JS engine) or V8 (Chrome JS engine) evaluate the it.
I don't mean capturing the traffic and get it before the application does, but "hijacking" the javascript before it…

TCS
- 5,790
- 5
- 54
- 86
0
votes
0 answers
JavaScript var scoping in strict mode
So since ES6 all functions are block scoped in strict mode, but "var" ignores block scope, then why code below gives a reference error?
'use strict'
function asd() {
var ssss = 5;
}
console.log(ssss);
//reference error
for (const item of arr) {
…

randomCoder
- 79
- 6
0
votes
0 answers
Are functions kept only once in memory in JavaScript?
Before asking my question let me give you some information. See this piece of code
"use strict"
function outer() {
let counter = 0;
function incrementCounter() {
counter++;
console.log(counter);
}
return…

Mesut Çiftçi
- 150
- 7
0
votes
1 answer
Is a browser's console an interface to the web API?
From my research, the browser gives us some features that the JavaScript engine itself doesn’t provide: a Web API. This includes the DOM API, setTimeout, HTTP requests, and so on.
So because browsers run functions that are not supported in the…

Mark Wild
- 213
- 1
- 3
- 13
0
votes
1 answer
Do Javascript engines do this kind of optimisation?
NB I've done a bit of reading about JS engine optimisation, but most of it is too technical for me to understand enough to apply to this question. I'm also aware that not all engines are the same. I'd be interested in particular in handling by V8…

mike rodent
- 14,126
- 11
- 103
- 157
0
votes
0 answers
object caching in modern JavaScript?
I'm preparing to take a JavaScript test, and came upon this post:
http://www.javascriptkit.com/javatutors/efficientjs.shtml
The gist is that this: