зеркало из https://github.com/mozilla/gecko-dev.git
disabling a signal handler isn't done by using undef
This commit is contained in:
Родитель
a7bb820a34
Коммит
6f34ba8bd5
|
@ -190,7 +190,7 @@ sub report {
|
||||||
my($exception, @data) = @_;
|
my($exception, @data) = @_;
|
||||||
syntaxError "Syntax error in \"report\": \"$exception\" is not a PLIF::Exception class", 1 unless UNIVERSAL::isa($exception, __PACKAGE__);
|
syntaxError "Syntax error in \"report\": \"$exception\" is not a PLIF::Exception class", 1 unless UNIVERSAL::isa($exception, __PACKAGE__);
|
||||||
$exception = $exception->init(@data);
|
$exception = $exception->init(@data);
|
||||||
local $SIG{__WARN__} = undef; # don't want this warning going through our processor
|
local $SIG{__WARN__} = 'DEFAULT'; # don't want this warning going through our processor
|
||||||
warn $exception;
|
warn $exception;
|
||||||
return $exception;
|
return $exception;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче