[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Errors/More_arguments_needed [Back]  [Original]

TypeError: More arguments needed - JavaScript | MDN

MDN Web Docs

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);


Web Proxy Viewer  |  New URL  |  Original Page