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 2017년 10월.
**WebAssembly.CompileError()**생성자는 WebAssembly 디코딩 또는 유효성 검사 중에 발생한 오류를 나타내는 WebAssembly CompileError 객체를 새로 만듭니다.
사람이 읽을수 있는 형태의 에러에 대한 설명.
fileName Optional예외의 원인이 된 코드가 들어있는 파일의 이름입니다.
lineNumber Optional예외의 원인이 된 코드의 행 번호입니다.
CompileError 생성자에는 고유 한 고유 속성이 없지만 프로토 타입 체인을 통해 일부 속성을 상속합니다.
WebAssembly.CompileError.prototype.constructor인스턴스의 프로토 타입을 작성한 함수를 지정합니다.
WebAssembly.CompileError.prototype.message에러 메시지. ECMA-262는 URIError가 SpiderMonkey에서 자체 message 속성을 제공하도록 지정했지만 Error.prototype.message를 상속받습니다.
WebAssembly.CompileError.prototype.name에러 명칭. Error에서 상속합니다.
WebAssembly.CompileError.prototype.fileName에러가 발생한 파일의 경로. Error에서 상속합니다.
WebAssembly.CompileError.prototype.lineNumber에러가 발생한 파일의 코드 줄번호. Error에서 상속합니다.
WebAssembly.CompileError.prototype.columnNumber에러가 발생한 줄의 열 번호. Error에서 상속합니다.
WebAssembly.CompileError.prototype.stack스텍 추적. Error에서 상속합니다.
CompileError 생성자에는 자체 메서드가 없지만 프로토 타입 체인을 통해 일부 메서드를 상속합니다.
WebAssembly.CompileError.prototype.toSource()동일한 오류로 판단할 수 있는 코드를 반환합니다. Error에서 상속합니다.
WebAssembly.CompileError.prototype.toString()지정된 Error 객체를 나타내는 문자열을 반환합니다. Error에서 상속합니다.
다음 스 니펫은 새 CompileError 인스턴스를 만들고 콘솔에 세부 정보를 기록합니다.
| WebAssembly JavaScript Interface # exceptiondef-compileerror |
| ECMAScript® 2027 Language Specification # sec-native-error-types-used-in-this-standard |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 6월 27일 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.