[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Errors/No_non-null_object [Back]  [Original]

TypeError: "x" is not a non-null object - JavaScript | MDN

MDN Web Docs

View in English Always switch to English

TypeError: "x" is not a non-null object

JavaScript "is not a non-null object" null

TypeError: Property description must be an object: x (V8-based)
TypeError: Property descriptor must be an object, got "x" (Firefox)
TypeError: Property description must be an object. (Safari)

TypeError

null

Object.create() Object.defineProperty() Object.defineProperties() ()

js
Object.defineProperty({}, "key", 1);
// TypeError: 1 is not a non-null object

Object.defineProperty({}, "key", null);
// TypeError: null is not a non-null object

js
Object.defineProperty({}, "key", { value: "foo", writable: false });


Web Proxy Viewer  |  New URL  |  Original Page