kzc

Results 96 comments of kzc

**4.** Bootstrap and build any version of node without a node binary using Duktape + duktape bindings + C++ compiler.

Microsoft appears to have created a V8 compatible C++ API facade for Chakra. While it is a nice piece of engineering, it also has the disadvantage of trying to keep...

I wouldn't recommend having the proposed C API functions and types mirror v8's C++ API and its concepts, because you would still have the original problem of tightly coupling node...

Perhaps I mistook @trevnorris' proposal. I thought both node itself and native node modules would be changed to only use this new C API to isolate them both from the...

@trevnorris, I agree that a C API wrapper makes sense if you intend to support javascript engines other than just v8. Just be aware that there are features and concepts...

Please gate this feature with a new compress option "unsafe_await" as discussed in #528. When it's tested in the wild on real life applications we might consider dropping the option...

The unrelated regression in master was caused by https://github.com/terser/terser/commit/942a9ef73a36c2a9f260be739be36e19633e732f

Unfortunately this test fails using this PR. Please mark PR as [WIP]. ``` $ cat abug.js var x = 100; function side_effect() { return console.log(++x), x; } function print(x) {...

> Anything that doesn't have side-effects, including vars collapsing, is safe to do in any context (that's the whole point of async-await after all - to behave like synchronous syntax)....

As previously mentioned, the code in question does not deal with constant propagation. The readme states: - `collapse_vars` (default: `true`) -- Collapse single-use non-constant variables, side effects permitting. The [patch](https://github.com/terser/terser/issues/528#issuecomment-562876860)...