silicakes
silicakes

Reputation: 6902

How are some Javascript features implemented differently between nodejs and the browser?

According to the v8 wikipedia link:

V8 is intended to be used both in a browser and as a standalone high-performance engine that can be integrated into independent projects. V8 is used in the following software:

  • Google Chrome and all other Chromium-based web browsers, including Brave, Opera and Vivaldi ...

  • Node.js runtime environment

That in mind - nodejs is also using libuv to handle asynchronous events:

Node.js uses libuv to handle asynchronous events. Libuv is an abstraction layer for network and file system functionality on both Windows and POSIX-based systems such as Linux, macOS, OSS on NonStop, and Unix.

Since both browsers and nodejs share common parts which are not part of the web api or nodes own api.

I assume that some features, which could be done with libuv - are implemented differently from the the browser.

What are some examples of API/JS implementations that are different between the two?

Upvotes: 0

Views: 364

Answers (1)

Ali Elkhateeb
Ali Elkhateeb

Reputation: 3703

Quoting from here

Libuv is the library that provides the event loop to Node.js

So basically this answer should give you an idea I suppose.

Upvotes: 1

Related Questions