diff options
author | 2023-08-01 16:43:48 -0700 | |
---|---|---|
committer | 2023-08-01 16:43:48 -0700 | |
commit | bd2563ef4c710a572bd7989841dbe1c4805caa74 (patch) | |
tree | 1215f012ade7e8ab126cb7860ba2ca0452517389 | |
parent | 214dc039e031124bed3021e5d97a54864089ad84 (diff) | |
download | bun-bd2563ef4c710a572bd7989841dbe1c4805caa74.tar.gz bun-bd2563ef4c710a572bd7989841dbe1c4805caa74.tar.zst bun-bd2563ef4c710a572bd7989841dbe1c4805caa74.zip |
Update JSWorker.cpp
-rw-r--r-- | src/bun.js/bindings/webcore/JSWorker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/webcore/JSWorker.cpp b/src/bun.js/bindings/webcore/JSWorker.cpp index 882c9da89..2dbac0240 100644 --- a/src/bun.js/bindings/webcore/JSWorker.cpp +++ b/src/bun.js/bindings/webcore/JSWorker.cpp @@ -212,7 +212,7 @@ static const HashTableValue JSWorkerPrototypeTableValues[] = { { "postMessage"_s, static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, jsWorkerPrototypeFunction_postMessage, 1 } }, { "ref"_s, static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, jsWorkerPrototypeFunction_ref, 0 } }, { "terminate"_s, static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, jsWorkerPrototypeFunction_terminate, 0 } }, - { "threadId"_s, JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute, NoIntrinsic, { HashTableValue::GetterSetterType, jsWorker_threadIdGetter, nullptr } }, + { "threadId"_s, JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontDelete, NoIntrinsic, { HashTableValue::GetterSetterType, jsWorker_threadIdGetter, nullptr } }, { "unref"_s, static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, jsWorkerPrototypeFunction_unref, 0 } }, }; |