Taritsyn / JavaScriptEngineSwitcher

JavaScript Engine Switcher determines unified interface for access to the basic features of popular JavaScript engines. This library allows you to quickly and easily switch to using of another JavaScript engine.
Apache License 2.0
439 stars 49 forks source link

Request to support Deno #107

Closed zakuru closed 1 year ago

zakuru commented 1 year ago

Hello,

Would is be possible to support DENO as JS environment ?

zakuru commented 1 year ago

I could do it actually if i can have some guidance

Taritsyn commented 1 year ago

Hello, Zakuru!

Deno is a JS runtime, not an engine. JavaScript Engine Switcher library is focused specifically on engines.

At one time, at the request of some users, I made a JavaScriptEngineSwitcher.Node module. It is quite out of the main concept of my library and few people use it. In general, I see no reason to create and maintain a second such module within my library.

If you have a desire and ability to make a .NET wrapper for Deno, then make your own project similar to the Jering.Javascript.NodeJS.

zakuru commented 1 year ago

Ok got will try to do it myself 👌 But just a questions when you say more focused on engine and les s on runtime its by choice and not tech reasons/ limitation right ?

DaniilSokolyuk commented 1 year ago

Or you can add Deno support in Jering.Javascript.NodeJS

zakuru commented 1 year ago

yes @DaniilSokolyuk I was about to start from there But then there will still be some work to do in JavaScriptEngineSwitcher

Taritsyn commented 1 year ago

But just a questions when you say more focused on engine and less on runtime its by choice and not tech reasons/ limitation right?

JavaScript Engine Switcher library was created for engines, not for runtimes.

But then there will still be some work to do in JavaScriptEngineSwitcher

For what? What is this work?

Taritsyn commented 1 year ago

Capabilities of the JavaScript Engine Switcher's modules are limited by the ECMAScript specification. If your goal is to run a Node.js modules without any modifications, then the JavaScript Engine Switcher library will not suit you.

zakuru commented 1 year ago

Ok will look into it thanks