diff options
author | 2021-10-30 04:52:15 -0700 | |
---|---|---|
committer | 2021-10-30 04:52:15 -0700 | |
commit | a68b5eef86b5e2e8b05a36b2bd7cc9305c6f1146 (patch) | |
tree | 593393816d82160524cff0c910b35e0039f87f5e | |
parent | 65ea1e464755a165a29680f12f02eb37ccfd8ecf (diff) | |
download | bun-a68b5eef86b5e2e8b05a36b2bd7cc9305c6f1146.tar.gz bun-a68b5eef86b5e2e8b05a36b2bd7cc9305c6f1146.tar.zst bun-a68b5eef86b5e2e8b05a36b2bd7cc9305c6f1146.zip |
[Bun.js] Enable SharedArrayBuffer
-rw-r--r-- | src/CHANGELOG.md | 4 | ||||
-rw-r--r-- | src/javascript/jsc/bindings/ZigGlobalObject.cpp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 0e377b372..6c97c01e5 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,9 @@ # Upcoming release +- [Bun.js] Enable `SharedArrayBuffer` and Atomics + +# 0.41.0 + - [bun run] `bun run ./file.js` now supports running JavaScript, TS, TSX, and JSX files with Bun.js. Before, it would say `"error: Missing script"`. If there is a `#!` shebang at the start of the file, the file will not be run with Bun.js. You can still use Node & Deno with `bun run`, that works the same as before. - [Bun.js] Top-level await - [Bun.js] `performance.now()` is implemented diff --git a/src/javascript/jsc/bindings/ZigGlobalObject.cpp b/src/javascript/jsc/bindings/ZigGlobalObject.cpp index ba5a2835a..b8470ce4b 100644 --- a/src/javascript/jsc/bindings/ZigGlobalObject.cpp +++ b/src/javascript/jsc/bindings/ZigGlobalObject.cpp @@ -89,6 +89,9 @@ extern "C" void JSCInitialize() { JSC::Options::useSourceProviderCache() = true; JSC::Options::useUnlinkedCodeBlockJettisoning() = false; JSC::Options::exposeInternalModuleLoader() = true; + JSC::Options::useSharedArrayBuffer() = true; + // JSC::Options::useAtMethod() = true; + // std::set_terminate([]() { Zig__GlobalObject__onCrash(); }); WTF::initializeMainThread(); JSC::initialize(); |