Get to know MDN better
Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.
Hay un error con que una funcion es llamada. Más argumentos necesitan ser dados.
El método Object.create() necesita al menos un argumento y el método Object.setPrototypeOf() necesita al menos 2 argumentos.
Puedes arreglar esto configurando null como el prototipo, por ejemplo:
This page was last modified on 3 ago 2023 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.