aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/JSBuffer.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-04-13 04:11:12 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-13 04:11:12 -0700
commitaeb3bb949b0052d0573bef507f1b66bbcf4f3dc0 (patch)
tree2b9e76e71f666a81071a01ced1171fe80d244c15 /src/bun.js/bindings/JSBuffer.cpp
parentdb15a23a637468c3fc67f2a6446698d758f58fbe (diff)
downloadbun-aeb3bb949b0052d0573bef507f1b66bbcf4f3dc0.tar.gz
bun-aeb3bb949b0052d0573bef507f1b66bbcf4f3dc0.tar.zst
bun-aeb3bb949b0052d0573bef507f1b66bbcf4f3dc0.zip
Upgrade WebKit (#2643)
* Missing export * Regenerate builtins * Fix crash in require() * Various breaking JSC changes * hopefully speed up C++ compilation a little * Skip failing test fo rnow * Update WebKit * Add a comment * Fix error in postinstall * Update WebKit --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/bun.js/bindings/JSBuffer.cpp')
-rw-r--r--src/bun.js/bindings/JSBuffer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bun.js/bindings/JSBuffer.cpp b/src/bun.js/bindings/JSBuffer.cpp
index 9b3854b95..9d66fa1db 100644
--- a/src/bun.js/bindings/JSBuffer.cpp
+++ b/src/bun.js/bindings/JSBuffer.cpp
@@ -56,6 +56,9 @@
// #include "JavaScriptCore/JSTypedArrayViewPrototype.h"
#include "JavaScriptCore/JSArrayBufferViewInlines.h"
+using namespace JSC;
+using namespace WebCore;
+
JSC_DECLARE_HOST_FUNCTION(constructJSBuffer);
static JSC_DECLARE_HOST_FUNCTION(jsBufferConstructorFunction_alloc);
@@ -2172,5 +2175,5 @@ bool JSBuffer__isBuffer(JSC::JSGlobalObject* lexicalGlobalObject, JSC::EncodedJS
return false;
JSValue prototype = cell->getPrototype(vm, lexicalGlobalObject);
- return prototype.inherits<JSBufferPrototype>();
+ return prototype.inherits<WebCore::JSBufferPrototype>();
} \ No newline at end of file