aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-17 21:49:00 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-17 21:49:00 -0700
commit7f4bb93782a6be4072c0187559ef2c877e4def90 (patch)
treeaacda3db285ba06db433b426a61c4c36da2d529c /src/bun.js
parenta10a8e9c70d883c230fd5f8f8d2c2550e35ea80c (diff)
downloadbun-7f4bb93782a6be4072c0187559ef2c877e4def90.tar.gz
bun-7f4bb93782a6be4072c0187559ef2c877e4def90.tar.zst
bun-7f4bb93782a6be4072c0187559ef2c877e4def90.zip
Slightly mroe careful TextEncoder
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/bindings/webcore/JSTextEncoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/bindings/webcore/JSTextEncoder.cpp b/src/bun.js/bindings/webcore/JSTextEncoder.cpp
index 03a301c05..90092163f 100644
--- a/src/bun.js/bindings/webcore/JSTextEncoder.cpp
+++ b/src/bun.js/bindings/webcore/JSTextEncoder.cpp
@@ -216,8 +216,8 @@ template<> void JSTextEncoderDOMConstructor::initializeProperties(VM& vm, JSDOMG
constexpr JSC::DFG::AbstractHeapKind heapKinds[4] = { JSC::DFG::HeapObjectCount };
// This is the equivalent of DataView.set
-constexpr JSC::DFG::AbstractHeapKind encodeIntoRead[4] = { JSC::DFG::MiscFields, JSC::DFG::TypedArrayProperties };
-constexpr JSC::DFG::AbstractHeapKind encodeIntoWrite[4] = { JSC::DFG::TypedArrayProperties };
+constexpr JSC::DFG::AbstractHeapKind encodeIntoRead[4] = { JSC::DFG::MiscFields, JSC::DFG::TypedArrayProperties, JSC::DFG::Absolute };
+constexpr JSC::DFG::AbstractHeapKind encodeIntoWrite[4] = { JSC::DFG::TypedArrayProperties, JSC::DFG::Absolute };
static const JSC::DOMJIT::Signature DOMJITSignatureForJSTextEncoderEncodeWithoutTypeCheck(
jsTextEncoderEncodeWithoutTypeCheck,