5 Commits
Author SHA1 Message Date
Saúl Ibarra Corretgé ea3e9d7745 Fix OOB access in atomic ops
Fixes: https://github.com/quickjs-ng/quickjs/issues/1301
Fixes: https://github.com/quickjs-ng/quickjs/issues/1302
2026-01-07 00:34:56 +01:00
Karl Seguin 8c526f6cb4 Add ES2020 string export/import name support (#1188)
Support for ES2020 arbitrary module namespace identifier names,
which allows using string literals as export/import names.

Examples:

```js
export { foo as "string-name" }
import { "string-name" as foo }
export * as "string-name" from "./mod.js"
```
2025-10-16 11:32:36 +02:00
Ben Noordhuis d07f6b5232 Handle unprintable objects better in print() (#834)
Before this commit, such objects were printed as `<exception>` because
print() and console.log() had no good way to turn them into strings.

Instead perform the C equivalent of Object.prototype.toString.call(o)
and print the result (which can still error but at least we tried.)

Fixes: https://github.com/quickjs-ng/quickjs/issues/832
2025-01-18 16:04:16 +01:00
Ben Noordhuis 36227a5310 Fix cyclic import/export segfault (#568)
Before this commit it segfaulted, now it throws a SyntaxError.
That's still not correct behavior but better than segfaulting.
To be continued.

Includes a small run-test262 fix to handle Windows line endings.

Refs: https://github.com/quickjs-ng/quickjs/issues/567
2024-10-16 10:13:38 +02:00
Ben Noordhuis b9be6d4ff2 Run local tests with run-test262 2024-10-10 21:52:34 +02:00