From 5e990a17012ff5ed90ae1559a11bbe4bc74c887a Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 8 Jun 2021 00:58:25 +0000 Subject: [CRON] sync translated content --- .../orphaned/web/api/abstractworker/index.html | 104 ++++++++++++++++++++ .../web/api/abstractworker/onerror/index.html | 105 +++++++++++++++++++++ 2 files changed, 209 insertions(+) create mode 100644 files/pt-br/orphaned/web/api/abstractworker/index.html create mode 100644 files/pt-br/orphaned/web/api/abstractworker/onerror/index.html (limited to 'files/pt-br/orphaned/web/api') diff --git a/files/pt-br/orphaned/web/api/abstractworker/index.html b/files/pt-br/orphaned/web/api/abstractworker/index.html new file mode 100644 index 0000000000..2b5355f865 --- /dev/null +++ b/files/pt-br/orphaned/web/api/abstractworker/index.html @@ -0,0 +1,104 @@ +--- +title: AbstractWorker +slug: orphaned/Web/API/AbstractWorker +translation_of: Web/API/AbstractWorker +original_slug: Web/API/AbstractWorker +--- +

{{ APIRef("Web Workers API") }}

+ +

Resumo

+ +

A interface AbstractWorker abstrai propriedades e métodos comuns para todo o tipo de Workers, sendo {{domxref("Worker")}} ou {{domxref("SharedWorker")}}.

+ +

Propriedades

+ +

A interface AbstractWorker não herda qualquer propriedade..

+ +
+
{{domxref("AbstractWorker.onerror")}}
+
É um {{ domxref("EventListener") }} que é chamado sempre que um {{domxref("ErrorEvent")}} do tipo error borbulha através do Worker.
+
+ +

Métodos

+ +

A interface AbstractWorker não implementa ou herda qualquer método.

+ +

Especificações

+ + + + + + + + + + + + + + + + + + + +
EspecificaçãoStatusComentário
{{SpecName('HTML WHATWG', "#the-abstractworker-abstract-interface", "AbstractWorker")}}{{Spec2('HTML WHATWG')}}Sem mudanças para {{SpecName("Web Workers")}}.
{{SpecName('Web Workers', "#the-abstractworker-abstract-interface", "AbstractWorker")}}{{Spec2('HTML5 W3C')}}Definição Inicial
+ +

Compatibilidade de Browser

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
RecursoChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Suporte Básico{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
RecursoAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Suporte Básico{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +

Veja também

+ + + +

 

diff --git a/files/pt-br/orphaned/web/api/abstractworker/onerror/index.html b/files/pt-br/orphaned/web/api/abstractworker/onerror/index.html new file mode 100644 index 0000000000..9ad74fd3fe --- /dev/null +++ b/files/pt-br/orphaned/web/api/abstractworker/onerror/index.html @@ -0,0 +1,105 @@ +--- +title: AbstractWorker.onerror +slug: orphaned/Web/API/AbstractWorker/onerror +translation_of: Web/API/AbstractWorker/onerror +original_slug: Web/API/AbstractWorker/onerror +--- +

{{ APIRef("Web Workers API") }}

+ +

Resumo

+ +

A propriedade AbstractWorker.onerror da interface {{domxref("AbstractWorker")}} representa um {{event("Event_handlers", "event handler")}}, que é uma função a ser chamada quando o evento {{event("error")}} ocorre através de um balão de notificação {{domxref("Worker")}}.

+ +

Sintaxe

+ +
myWorker.onerror = function() { ... };
+ +

Exemplo

+ +

O seguinte trecho de código mostra criação de um objeto Worker usando o construtor de Worker() e criando um manipulador onerror no objeto resultante:

+ +
var myWorker = new Worker("worker.js");
+
+myWorker.onerror = function() {
+  console.log('Há um erro com o seu worker!');
+}
+ +

Especificações

+ + + + + + + + + + + + + + + + + + + +
EspecificaçãoStatusComentário
{{SpecName('HTML WHATWG', "#handler-abstractworker-onerror", "AbstractWorker.onerror")}}{{Spec2('HTML WHATWG')}}Nenhuma mudança em {{SpecName("Web Workers")}}.
{{SpecName('Web Workers', "#handler-abstractworker-onerror", "AbstractWorker.onerror")}}{{Spec2('Web Workers')}}Definição inicial.
+ +

Compatibilidade dos Navegadores

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticasChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Suporte básico{{CompatChrome(4)}}{{CompatGeckoDesktop("1.9.1")}}1010.64
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
CaracterísticasAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE PhoneOpera MobileSafari Mobile
Suporte básico4.4{{CompatGeckoMobile("1.9.1")}}1.0.11011.55.1
+
+ +

Veja também

+ + -- cgit v1.2.3-54-g00ecf