| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Errors/No_non-null_object | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
TypeError: {x} (Edge)
TypeError: "x" (Firefox)
TypeError: : "x" (Chrome)
TypeError: , (Chrome)
TypeError
- . null . .
, Object.create() Object.defineProperty() Object.defineProperties() , . (, ), :
Object.defineProperty({}, "key", 1);
// TypeError: 1 is not a non-null object
Object.defineProperty({}, "key", null);
// TypeError: null is not a non-null object
:
Object.defineProperty({}, "key", { value: "foo", writable: false });
var ws = new WeakSet();
ws.add("foo");
// TypeError: "foo" is not a non-null object
:
ws.add({ foo: "bar" });
ws.add(window);
This page was last modified on 29 . 2026 . by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |