aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CHANGELOG.md4
-rw-r--r--src/javascript/jsc/bindings/ZigGlobalObject.cpp3
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();