Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
* Some parts of this feature may have varying levels of support.
TypeError 객체는 일반적으로 값이 기대하던 자료형이 아니라서 연산을 할 수 없을 때 발생하는 오류를 나타냅니다.
다음과 같은 경우 TypeError가 발생할 수 있습니다.
TypeError는 직렬화 가능한 객체이기 때문에, structuredClone()로 복제하거나 postMessage()를 사용하여 Workers 간에 복사할 수 있습니다.
새로운 TypeError 객체를 생성합니다.
오류 메시지. Error로부터 상속되었습니다.
TypeError.prototype.name오류 이름. Error로부터 상속되었습니다.
TypeError.prototype.cause오류 원인. Error로부터 상속되었습니다.
TypeError.prototype.fileName오류가 발생한 파일 경로. Error로부터 상속되었습니다.
TypeError.prototype.lineNumber오류가 발생한 곳의 줄 위치. Error로부터 상속되었습니다.
TypeError.prototype.columnNumber오류가 발생한 곳의 열 위치. Error로부터 상속되었습니다.
TypeError.prototype.stack스택 추적. Error로부터 상속되었습니다.
| ECMAScript® 2027 Language Specification # sec-native-error-types-used-in-this-standard-typeerror |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023년 8월 8일 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.