Skip to content

Commit

Permalink
[Bun.js] Enable SharedArrayBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Oct 30, 2021
1 parent 65ea1e4 commit a68b5ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/javascript/jsc/bindings/ZigGlobalObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a68b5ee

Please sign in to comment.