Skip to content

Sync with upstream @ 540d753e #760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion 1-js/01-getting-started/4-devtools/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Las herramientas de desarrollador se abrirán en la pestaña Consola de forma pr

Se ve algo así:

![chrome](chrome.png)
![chrome](chrome.webp)

El aspecto exacto de las herramientas de desarrollador depende de su versión de Chrome. Cambia de vez en cuando, pero debería ser similar.

Expand All @@ -49,7 +49,11 @@ La apariencia de ellos es bastante similar. Una vez que sepa cómo usar una de e

Safari (navegador Mac, no compatible con Windows/Linux) es un poco especial aquí. Necesitamos habilitar primero el "Menú de desarrollo".

<<<<<<< HEAD
Abra Preferencias y vaya al panel "Avanzado". Hay una casilla de verificación en la parte inferior:
=======
Open Settings and go to the "Advanced" pane. There's a checkbox at the bottom:
>>>>>>> 540d753e90789205fc6e75c502f68382c87dea9b

![safari](safari.png)

Expand Down
Binary file removed 1-js/01-getting-started/4-devtools/chrome.png
Binary file not shown.
Binary file added 1-js/01-getting-started/4-devtools/chrome.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions 1-js/06-advanced-functions/06-function-object/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,11 @@ welcome(); // Hello, Guest (la llamada anidada funciona)

Ahora funciona, porque el nombre `"func"` es una función local. No se toma desde el exterior (y no es visible allí). La especificación garantiza que siempre hará referencia a la función actual.

<<<<<<< HEAD
El código externo todavía tiene su variable `sayHi` o `welcome`. Y `func` es el "nombre de función interna" con el que la función puede llamarse a sí misma de manera confiable.
=======
The outer code still has its variable `sayHi` or `welcome`. And `func` is an "internal function name", the way for the function to call itself reliably.
>>>>>>> 540d753e90789205fc6e75c502f68382c87dea9b

```smart header="No existe tal cosa para la Declaración de funciones"
La característica "nombre interno" descrita aquí solo está disponible para Expresiones de funciones, no para Declaraciones de funciones. Para las declaraciones de funciones, no hay sintaxis para agregar un nombre "interno".
Expand Down
4 changes: 4 additions & 0 deletions 1-js/06-advanced-functions/10-bind/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ funcUser(); // John
*/!*
```

<<<<<<< HEAD
Aquí `func.bind(user)` es como una "variante vinculada" de `func`, con `this = user` fijo en ella.
=======
Here `func.bind(user)` is a "bound variant" of `func`, with fixed `this=user`.
>>>>>>> 540d753e90789205fc6e75c502f68382c87dea9b

Todos los argumentos se pasan al `func` original "tal cual", por ejemplo:

Expand Down
4 changes: 4 additions & 0 deletions 1-js/10-error-handling/1-try-catch/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,11 @@ Por ejemplo:

El rol del controlador global `window.onerror` generalmente no es recuperar la ejecución del script, probablemente sea imposible en caso de errores de programación, pero sí enviar el mensaje de error a los desarrolladores.

<<<<<<< HEAD
También hay servicios web que proporcionan registro de errores para tales casos, como <https://errorception.com> o <https://www.muscula.com>.
=======
There are also web-services that provide error-logging for such cases, like <https://muscula.com> or <https://www.sentry.io>.
>>>>>>> 540d753e90789205fc6e75c502f68382c87dea9b

Estos servicios funcionan así:

Expand Down