mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1235989 - Add a null check for filename in ModuleValidator::finish. r=luke
This commit is contained in:
parent
031d66b209
commit
094cd16549
@ -2034,9 +2034,12 @@ class MOZ_STACK_CLASS ModuleValidator
|
||||
|
||||
auto mutedErrors = Module::MutedBool(parser_.ss->mutedErrors());
|
||||
|
||||
CacheableChars filename = make_string_copy(parser_.ss->filename());
|
||||
if (!filename)
|
||||
return false;
|
||||
CacheableChars filename;
|
||||
if (parser_.ss->filename()) {
|
||||
filename = make_string_copy(parser_.ss->filename());
|
||||
if (!filename)
|
||||
return false;
|
||||
}
|
||||
|
||||
CacheableTwoByteChars displayURL;
|
||||
if (parser_.ss->hasDisplayURL()) {
|
||||
@ -6738,7 +6741,6 @@ CheckSwitch(FunctionValidator& f, ParseNode* switchStmt)
|
||||
|
||||
if (!CheckStatement(f, CaseBody(stmt)))
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
bool hasDefault = false;
|
||||
|
@ -3075,7 +3075,6 @@ wasm::IonCompileFunction(IonCompileTask* task)
|
||||
|
||||
// Compile MIR graph
|
||||
{
|
||||
|
||||
jit::SpewBeginFunction(&mir, nullptr);
|
||||
jit::AutoSpewEndFunction spewEndFunction(&mir);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user