aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-06-07 22:32:46 -0700
committerGravatar GitHub <noreply@github.com> 2022-06-07 22:32:46 -0700
commit43de33afc7fcc4cab25f578566e225ba9e4d4258 (patch)
tree141676095981741c3a5740093fee79ed12d4edcd /src/runtime.js
parent958fc3d4f5ba2a1fb5b5e1e2b9fe3a4500dbefc6 (diff)
downloadbun-43de33afc7fcc4cab25f578566e225ba9e4d4258.tar.gz
bun-43de33afc7fcc4cab25f578566e225ba9e4d4258.tar.zst
bun-43de33afc7fcc4cab25f578566e225ba9e4d4258.zip
Web Streams API (#176)
* [bun.js] `WritableStream`, `ReadableStream`, `TransformStream`, `WritableStreamDefaultController`, `ReadableStreamDefaultController` & more * Implement `Blob.stream()` * Update streams.test.js * Fix sourcemaps crash * [TextEncoder] 3x faster in hot loops * reading almost works * start to implement native streams * Implement `Blob.stream()` * Implement `Bun.file(pathOrFd).stream()` * Add an extra function * [fs.readFile] Improve performance * make jsc bindings a little easier to work with * fix segfault * faster async/await + readablestream optimizations * WebKit updates * More WebKit updates * Add releaseWEakrefs binding * `bun:jsc` * More streams * Update streams.test.js * Update Makefile * Update mimalloc * Update WebKit * Create bun-jsc.test.js * Faster ReadableStream * Fix off by one & exceptions * Handle empty files/blobs * Update streams.test.js * Move streams to it's own file * temp * impl #1 * take two * good enough for now * Implement `readableStreamToArray`, `readableStreamToArrayBuffer`, `concatArrayBuffers` * jsxOptimizationInlining * Fix crash * Add `jsxOptimizationInline` to Bun.Transpiler * Update Transpiler types * Update js_ast.zig * Automatically choose production mode when NODE_ENV="production" * Update cli.zig * [jsx] Handle defaultProps when inlining * Update transpiler.test.js * uncomment some tests Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/runtime.js b/src/runtime.js
index 4ac76bff0..485cdc6f6 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -9,16 +9,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
// We're disabling Object.freeze because it breaks CJS => ESM and can cause
// issues with Suspense and other things that expect the CJS module namespace
// to be mutable when the ESM module namespace is NOT mutable
-var __objectFreezePolyfill = new WeakSet();
+// var __objectFreezePolyfill = new WeakSet();
-globalThis.Object.freeze = function freeze(obj) {
- __objectFreezePolyfill.add(obj);
- return obj;
-};
+// globalThis.Object.freeze = function freeze(obj) {
+// __objectFreezePolyfill.add(obj);
+// return obj;
+// };
-globalThis.Object.isFrozen = function isFrozen(obj) {
- return __objectFreezePolyfill.has(obj);
-};
+// globalThis.Object.isFrozen = function isFrozen(obj) {
+// return __objectFreezePolyfill.has(obj);
+// };
export var __markAsModule = (target) =>
__defProp(target, "__esModule", { value: true, configurable: true });