Fix runtime issues under GCC on WIndows

This commit is contained in:
wuggy 2026-04-20 03:33:57 -07:00
commit 1639a538c2
2 changed files with 4 additions and 2 deletions

View file

@ -335,7 +335,7 @@ GlobalObject*
GlobalObject::createInternal(JSContext* cx, const Class* clasp)
{
MOZ_ASSERT(clasp->flags & JSCLASS_IS_GLOBAL);
MOZ_ASSERT(clasp->isTrace(JS_GlobalObjectTraceHook));
MOZ_ASSERT(clasp->hasTrace());
JSObject* obj = NewObjectWithGivenProto(cx, clasp, nullptr, SingletonObject);
if (!obj)

View file

@ -242,7 +242,6 @@ UNIFIED_SOURCES += [
'nsURLParsers.cpp',
'PollableEvent.cpp',
'Predictor.cpp',
'ProxyAutoConfig.cpp',
'RedirectChannelRegistrar.cpp',
'RequestContextService.cpp',
'SimpleBuffer.cpp',
@ -255,15 +254,18 @@ UNIFIED_SOURCES += [
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
SOURCES += [
'nsURLHelperWin.cpp',
'ProxyAutoConfig.cpp',
'ShutdownLayer.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
SOURCES += [
'nsURLHelperOSX.cpp',
'ProxyAutoConfig.cpp',
]
else:
SOURCES += [
'nsURLHelperUnix.cpp',
'ProxyAutoConfig.cpp',
]
# nsINetworkInfoService support.