diff options
author | 2022-11-14 19:55:48 -0800 | |
---|---|---|
committer | 2022-11-14 19:55:48 -0800 | |
commit | 9c3b2f7ad6549f1c86832bb9027278fcce9b80b5 (patch) | |
tree | 4327980446f0fec4a2e15f77ceeedb7cac728e5f /src/bun.js/bindings/webcrypto/SubtleCrypto.h | |
parent | 436b8e14611e346fdb2c581a7c137f1dde10f1b0 (diff) | |
download | bun-9c3b2f7ad6549f1c86832bb9027278fcce9b80b5.tar.gz bun-9c3b2f7ad6549f1c86832bb9027278fcce9b80b5.tar.zst bun-9c3b2f7ad6549f1c86832bb9027278fcce9b80b5.zip |
Fix crash in web crypto. caused by refptr
Diffstat (limited to 'src/bun.js/bindings/webcrypto/SubtleCrypto.h')
-rw-r--r-- | src/bun.js/bindings/webcrypto/SubtleCrypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bun.js/bindings/webcrypto/SubtleCrypto.h b/src/bun.js/bindings/webcrypto/SubtleCrypto.h index 5ee622250..e9ef23e6a 100644 --- a/src/bun.js/bindings/webcrypto/SubtleCrypto.h +++ b/src/bun.js/bindings/webcrypto/SubtleCrypto.h @@ -56,6 +56,7 @@ enum class CryptoKeyUsage; class SubtleCrypto : public ContextDestructionObserver, public RefCounted<SubtleCrypto>, public CanMakeWeakPtr<SubtleCrypto> { public: static Ref<SubtleCrypto> create(ScriptExecutionContext* context) { return adoptRef(*new SubtleCrypto(context)); } + static SubtleCrypto* createPtr(ScriptExecutionContext* context) { return new SubtleCrypto(context); } ~SubtleCrypto(); using KeyFormat = CryptoKeyFormat; |