kzc

Results 96 comments of kzc

Fair enough. Keep the issues and PR open for anyone interested. Who knows - some other optimization might spark your interest and you might revisit it.

There's a few random ES code generators out there, but unfortunately none like `ufuzz` that produce useful testable output. Generating plausible runnable scenarios without throwing too many exceptions is not...

It's not really a rollup thing. Property hoisting is handled by terser. ``` $ cat button.js var styles = {"button": "Button__button", "unused": "Button__unused"}; function Button() { return /*#__PURE__*/React.createElement("div", { className:...

> for non-modules, the difference matters: topLevelLexical mangling would be acceptable whereas topLevel is potentially dangerous @mathiasbynens I must confess that this is the first I've heard of top-level lexical...

> `console.log(window.foo);` @mathiasbynens Thanks for the illustrative example. I don't think this is an issue in practice because most folks explicitly anchor their globals via `window.foo = foo;` (or via...

As per the `child_process.exec` and `child_process.execSync`'s `shell` option documentation: > shell: [](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) Shell to execute the command with. See [Shell requirements](https://nodejs.org/api/child_process.html#shell-requirements) and [Default Windows shell](https://nodejs.org/api/child_process.html#default-windows-shell). Default: '/bin/sh' on Unix, process.env.ComSpec...

given: bun 1.0.30 canary Mac OS X 10.14.6 x86_64 ``` $ cat test-pwritev.js var assert = require("assert"); var fs = require("fs"); var FNAME = "zzz.tmp"; var B = s =>...

This is interesting. The `pwritev$NOCANCEL` polyfill works fine for single process `bun` use, but it doesn't work on macOS 10.x for `bun repl` and other exec'd programs: ``` $ export...

If you don't wish to alter `/bin/sh` and `/usr/bin/env` on macos 10.x, the `DYLD_*` environment variable exporting problem can be worked around by interposing `execve` to change the path argument...

On my mac at least the unresolved `_ucal_getHostTimeZone` symbol can be worked around without a new `dylib` just by setting the `TZ` environment variable... given: ``` $ echo `sw_vers -productName...