Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build lowjs from sources... #138

Open
Honya2000 opened this issue Aug 27, 2021 · 1 comment
Open

How to build lowjs from sources... #138

Honya2000 opened this issue Aug 27, 2021 · 1 comment

Comments

@Honya2000
Copy link

I'm quite confused how to build low_js folder using duktape runtime.
There is tool dukc, which compiles lib_js folder to lib .low files.

But the problem is ALL files in this folder are not compilable by duktape.
First because duktape doesn't support let variable declaration.

And even without let - it reports errors on each second line for all js files.

For example:

const { Buffer } = require('buffer');

const {
ERR_INVALID_ARG_TYPE,
ERR_OUT_OF_RANGE
} = require('internal/errors').codes;

duktape throws errors on this lines.

So how this .low files where compiled which are existing in binary distribution ?

@ThomasRogg
Copy link
Member

The Makefile transpiles these files with tsc before compiling them with DukTape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants