diff options
author | 2022-12-17 15:41:47 -0800 | |
---|---|---|
committer | 2022-12-17 15:41:47 -0800 | |
commit | feea8824f1da05a43f602e8f9f94ff1862c848d0 (patch) | |
tree | 0b07b0f02539d99efa500895f6d2a0a69e8514c6 /src/bun.js/bindings/bindings.cpp | |
parent | 028e48ed972fa0a05388feab4c6874baab0331c2 (diff) | |
download | bun-feea8824f1da05a43f602e8f9f94ff1862c848d0.tar.gz bun-feea8824f1da05a43f602e8f9f94ff1862c848d0.tar.zst bun-feea8824f1da05a43f602e8f9f94ff1862c848d0.zip |
Delete Oniguruma (#1625)
* Update .gitmodules
* Delete oniguruma
* Delete Oniguruma
* Make this test less flaky
* :scissors:
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/bun.js/bindings/bindings.cpp')
-rw-r--r-- | src/bun.js/bindings/bindings.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/bun.js/bindings/bindings.cpp b/src/bun.js/bindings/bindings.cpp index b5a78af0a..f37af006b 100644 --- a/src/bun.js/bindings/bindings.cpp +++ b/src/bun.js/bindings/bindings.cpp @@ -82,7 +82,6 @@ #include "JavaScriptCore/PropertyNameArray.h" #include "JavaScriptCore/HashMapImpl.h" #include "JavaScriptCore/HashMapImplInlines.h" -#include "OnigurumaRegExp.h" template<typename UWSResponse> static void copyToUWS(WebCore::FetchHeaders* headers, UWSResponse* res) @@ -382,22 +381,7 @@ bool Bun__deepEquals(JSC__JSGlobalObject* globalObject, JSValue v1, JSValue v2, return false; } - if (OnigurumaRegEx* left = jsDynamicCast<OnigurumaRegEx*>(v1)) { - OnigurumaRegEx* right = jsDynamicCast<OnigurumaRegEx*>(v2); - if (UNLIKELY(!right)) { - return false; - } - - if (!equal(left->patternString(), right->patternString())) { - return false; - } - - if (!equal(left->flagsString(), right->flagsString())) { - return false; - } - - return true; - } else if (JSC::RegExpObject* left = jsDynamicCast<JSC::RegExpObject*>(v1)) { + if (JSC::RegExpObject* left = jsDynamicCast<JSC::RegExpObject*>(v1)) { JSC::RegExpObject* right = jsDynamicCast<JSC::RegExpObject*>(v2); if (UNLIKELY(!right)) { |