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월.
EvalError() 생성자는 EvalError 객체를 생성합니다.
참고 : EvalError()는 new와 함께 호출하거나 혹은 new 없이 호출할 수 있습니다. 두 방법 모두 새로운 EvalError 인스턴스를 생성합니다.
사람이 읽을 수 있는 오류에 대한 설명
options Optional다음의 속성을 가지는 객체
cause Optional오류의 구체적인 원인을 나타내는 속성입니다. 보다 구체적이거나 유용한 오류 메시지가 포함된 오류를 처리 및 다시 예외를 발생시킬 때 이 속성을 사용하여 원래 오류를 전달할 수 있습니다.
fileName Optional이 예외가 발생한 코드가 초함된 파일의 이름
lineNumber Optional이 예외가 발생한 코드의 라인 수
EvalError는 현재 ECMAScript 명세에서 사용되지 않으므로 런타임이 이 예외를 발생시키지 않습니다. 그러나 이전 버전의 명세와 하위 호환을 위해 객체 자체는 그대로 유지합니다.
| ECMAScript® 2027 Language Specification # sec-nativeerror-constructors |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 10월 9일 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.