diff --git a/src/bun.js/bindings/BunWorkerGlobalScope.h b/src/bun.js/bindings/BunWorkerGlobalScope.h index fac0329391..4adcdf6c07 100644 --- a/src/bun.js/bindings/BunWorkerGlobalScope.h +++ b/src/bun.js/bindings/BunWorkerGlobalScope.h @@ -49,8 +49,5 @@ public: MessagePortChannelProvider& messagePortChannelProvider(); ScriptExecutionContext* m_context; - -private: - MessagePortChannelProviderImpl* m_messagePortChannelProvider; }; } diff --git a/src/bun.js/bindings/bindings.cpp b/src/bun.js/bindings/bindings.cpp index 32af189ab8..83b60734b8 100644 --- a/src/bun.js/bindings/bindings.cpp +++ b/src/bun.js/bindings/bindings.cpp @@ -5014,8 +5014,7 @@ void JSC__JSValue__getNameProperty(JSC::EncodedJSValue JSValue0, JSC::JSGlobalOb } if (JSC::InternalFunction* function = JSC::jsDynamicCast(obj)) { - auto view = WTF::StringView(function->name()); - *arg2 = Zig::toZigString(view); + *arg2 = Zig::toZigString(function->name()); return; } diff --git a/src/bun.js/bindings/webcore/ErrorEvent.h b/src/bun.js/bindings/webcore/ErrorEvent.h index 7bbae9cd40..b78b3a537c 100644 --- a/src/bun.js/bindings/webcore/ErrorEvent.h +++ b/src/bun.js/bindings/webcore/ErrorEvent.h @@ -93,8 +93,6 @@ private: unsigned m_lineNumber; unsigned m_columnNumber; JSValueInWrappedObject m_error; - // RefPtr m_serializedError; - bool m_triedToSerialize { false }; }; } // namespace WebCore diff --git a/src/bun.js/bindings/webcore/HTTPParsers.cpp b/src/bun.js/bindings/webcore/HTTPParsers.cpp index 27424e2271..1eb0a3a530 100644 --- a/src/bun.js/bindings/webcore/HTTPParsers.cpp +++ b/src/bun.js/bindings/webcore/HTTPParsers.cpp @@ -372,7 +372,7 @@ StringView filenameFromHTTPContentDisposition(StringView value) return value; } - return String(); + return emptyString(); } String extractMIMETypeFromMediaType(const String& mediaType) diff --git a/src/bun.js/bindings/webcore/PerformanceTiming.h b/src/bun.js/bindings/webcore/PerformanceTiming.h index 413d2b7072..779caa5c75 100644 --- a/src/bun.js/bindings/webcore/PerformanceTiming.h +++ b/src/bun.js/bindings/webcore/PerformanceTiming.h @@ -68,27 +68,27 @@ private: unsigned long long monotonicTimeToIntegerMilliseconds(MonotonicTime) const; - mutable unsigned long long m_navigationStart { 0 }; - mutable unsigned long long m_unloadEventStart { 0 }; - mutable unsigned long long m_unloadEventEnd { 0 }; - mutable unsigned long long m_redirectStart { 0 }; - mutable unsigned long long m_redirectEnd { 0 }; - mutable unsigned long long m_fetchStart { 0 }; - mutable unsigned long long m_domainLookupStart { 0 }; - mutable unsigned long long m_domainLookupEnd { 0 }; - mutable unsigned long long m_connectStart { 0 }; - mutable unsigned long long m_connectEnd { 0 }; - mutable unsigned long long m_secureConnectionStart { 0 }; - mutable unsigned long long m_requestStart { 0 }; - mutable unsigned long long m_responseStart { 0 }; - mutable unsigned long long m_responseEnd { 0 }; - mutable unsigned long long m_domLoading { 0 }; - mutable unsigned long long m_domInteractive { 0 }; - mutable unsigned long long m_domContentLoadedEventStart { 0 }; - mutable unsigned long long m_domContentLoadedEventEnd { 0 }; - mutable unsigned long long m_domComplete { 0 }; - mutable unsigned long long m_loadEventStart { 0 }; - mutable unsigned long long m_loadEventEnd { 0 }; + // mutable unsigned long long m_navigationStart { 0 }; + // mutable unsigned long long m_unloadEventStart { 0 }; + // mutable unsigned long long m_unloadEventEnd { 0 }; + // mutable unsigned long long m_redirectStart { 0 }; + // mutable unsigned long long m_redirectEnd { 0 }; + // mutable unsigned long long m_fetchStart { 0 }; + // mutable unsigned long long m_domainLookupStart { 0 }; + // mutable unsigned long long m_domainLookupEnd { 0 }; + // mutable unsigned long long m_connectStart { 0 }; + // mutable unsigned long long m_connectEnd { 0 }; + // mutable unsigned long long m_secureConnectionStart { 0 }; + // mutable unsigned long long m_requestStart { 0 }; + // mutable unsigned long long m_responseStart { 0 }; + // mutable unsigned long long m_responseEnd { 0 }; + // mutable unsigned long long m_domLoading { 0 }; + // mutable unsigned long long m_domInteractive { 0 }; + // mutable unsigned long long m_domContentLoadedEventStart { 0 }; + // mutable unsigned long long m_domContentLoadedEventEnd { 0 }; + // mutable unsigned long long m_domComplete { 0 }; + // mutable unsigned long long m_loadEventStart { 0 }; + // mutable unsigned long long m_loadEventEnd { 0 }; }; } // namespace WebCore