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.
ReferenceError 객체는 현재 범위에서 존재하지 않거나 초기화되지 않은 변수를 참조했을 때 발생하는 에러를 나타냅니다.
ReferenceError는 직렬화 가능한 객체이기 때문에, structuredClone() 혹은 Workers 사이에서 postMessage()를 사용하여 복사할 수 있습니다.
새로운 ReferenceError 객체를 생성합니다.
오류 메시지. Error에서 상속되었습니다.
ReferenceError.prototype.name오류 이름. Error에서 상속되었습니다.
ReferenceError.prototype.cause오류 원인. Error에서 상속되었습니다.
ReferenceError.prototype.fileName오류가 발생한 파일 경로. Error에서 상속되었습니다.
ReferenceError.prototype.lineNumber오류가 발생한 곳의 파일 내 줄 수. Error에서 상속되었습니다.
ReferenceError.prototype.columnNumber오류가 발생한 곳의 줄에서 열 위치. Error에서 상속되었습니다..
ReferenceError.prototype.stack스택 추적. Error에서 상속되었습니다.
| ECMAScript® 2027 Language Specification # sec-native-error-types-used-in-this-standard-referenceerror |
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.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.