Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2017年10月.
WebAssembly.RuntimeError オブジェクトは、 WebAssembly がトラップを指定するたびに例外として発生するエラー型です。
新しい WebAssembly.RuntimeError オブジェクトを生成します。
エラーメッセージ。 Error から継承しています。
WebAssembly.RuntimeError.prototype.nameエラー名。 Error から継承しています。
WebAssembly.RuntimeError.prototype.fileNameこのエラーを発生させたファイルのパス。 Error から継承しています。
WebAssembly.RuntimeError.prototype.lineNumberこのエラーを発生させたファイルの行番号。 Error から継承しています。
WebAssembly.RuntimeError.prototype.columnNumberこのエラーが発生した行の列番号。 Error から継承しています。
WebAssembly.RuntimeError.prototype.stackスタックトレース。 Error から継承しています。
同じエラーを評価できるコードを返します。 Error から継承しています。
WebAssembly.RuntimeError.prototype.toString()指定された Error オブジェクトを表す文字列を返します。Error から継承しています。
以下のスニペットでは、新しい RuntimeError インスタンスを生成して、詳細をコンソールに記録します。
| WebAssembly JavaScript Interface # exceptiondef-runtimeerror |
| 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年3月21日 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.