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

View file

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