174 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
99
views
The mechanism for transforming JavaScript syntactic sugar in V8 using async/await as an example
Is syntactic sugar such as async/await converted before compilation/interpretation?
Attention. I mean the situation when the engine supports the syntax of our code and we do not need to transpile it. ...
0
votes
1
answer
223
views
Where primitives inside objects are actually stored
When i Declare an Object and inside of that object i made a property that holds a primitive value
so in this Example
const foo = {
firstName: 'bar'
}
where the bar actually stored is it points the ...
1
vote
1
answer
57
views
Why is an inline cache for retrieving property from an object invalidated whenever someone changes any prototype above it, not below it?
I'm reading Mathias and Benedikt's article JavaScript engine fundamentals: optimizing prototypes. The article says:
This ValidityCell is invalidated whenever someone changes the associated prototype ...
0
votes
0
answers
88
views
FileSystemNotFoundException in GraalVM Javascript Engine in Springboot Application
I created a springboot project and added GraalVM dependency in pom.xml to execute Javascript Code in my Spingboot Project.
<dependency>
<groupId>org.graalvm.js</...
1
vote
2
answers
140
views
Regex replacement problems
I am trying to write a regex replacment that will do the following but have tried for several hours to no avail.
I have the following regex: (?:\> \[!anki\]-) ([^\n]+)\n(.+(?:\n(?:^.{1,3}$|^.{4}(?&...
1
vote
1
answer
1k
views
Clearing up confusion about V8 and the JavaScript engine
I've been researching the V8 engine and JavaScript engines in general for about 2 hours, and I was wondering if I have the process correct.
First, we have JavaScript code.
With the code as input, the ...
1
vote
2
answers
2k
views
Why android phone doesn't have built in javascript engine in order to run javascript code for react-native?
As I was reading few blogs on how react native works under the hood, I found out that ios devices have built in javascript engine called javascript core which is used in safari browser. But android ...
-1
votes
1
answer
164
views
How JavaScript language is been executed under the hood in Google V8 engine
Hello Guys I have a question, so i study computer science at university , we have built a simple language called NewJava , its syntax is similar to Java, we built the interpreter with c++ , we have ...
-2
votes
1
answer
189
views
How can arrow function's access it's parameters value?
Well while studying how JavaScript behind the scenes work I read that arrow functions does not have their own 'this' keyword nor their own parameters.
//MAIN PROBLEM
However, you can access the ...
0
votes
1
answer
70
views
How to disable Javascript debugging in NetBeans when using ScriptEngine?
Development environment is netbeans, java application, which runs javascript thru ScriptEngine in GraalVM.
When using debug mode, it automatically force a debug session with Chrome when scriptengine ...
0
votes
0
answers
1k
views
ScriptEngineManager() from javax library returns NULL (eclipse)
When my piece of code below runs on Eclipse on both on Mac and Win8 (both are with Open JDK-17.0.2) below I get the java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.eval(...
0
votes
0
answers
63
views
How typed array stores numbers in javascript
If I understood correctly, every number in javascript is 64-bit (i64)?
Does that mean that new Uint8Array([num]) uses less memory than just num?
0
votes
2
answers
716
views
What's the relation between the renderer process and a JavaScript engine?
I'm learning about how a browser works and so far I've learned that browsers have a process called the renderer.
Part of the job of this process is to parse and run a JavaScript code when it finds ...
5
votes
1
answer
2k
views
How is JavaScript code transformed into Machine Code? Or why is it not?
I'm trying to understand the process of how a piece of JavaScript code is executed. So far, I've managed to have most of the layout pictured out, but there's a few gaps that I wish to cover.
I know ...
0
votes
1
answer
272
views
Does complexity depend on the size of numbers in JS engine?
Does it matter how big numbers to calculate in JavaScript Engine, especially V8 in NodeJS?
The applicable example: I'm calculating in loops time date variables in milliseconds and have some time ...