pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Errors/More_arguments_needed

tatic/client/1111.53dba753dc3eb961.js" type="module">

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

TypeError: More arguments needed

Сообщение

TypeError: Object.create requires more than 0 arguments
TypeError: Object.setPrototypeOf requires more than 1 argument
TypeError: Object.defineProperties requires more than 0 arguments

Тип ошибки

TypeError.

Что пошло не так?

Ошибка в вызове функции. Необходимо передать больше аргументов.

Примеры

Метод Object.create() требует хотя бы один аргумент, а Object.setPrototypeOf() минимум двух:

js
var obj = Object.create();
// TypeError: Object.create requires more than 0 arguments

var obj = Object.setPrototypeOf({});
// TypeError: Object.setPrototypeOf requires more than 1 argument

Вы можете исправить это, установив null в качестве прототипа, например:

js
var obj = Object.create(null);

var obj = Object.setPrototypeOf({}, null);

Смотрите также

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy