| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError | [Back] [Original] |
Get to know MDN better
SyntaxError JavaScript
SyntaxError structuredClone() postMessage()
SyntaxError Error
SyntaxError() SyntaxError
SyntaxError.prototype SyntaxError
SyntaxError.prototype.constructorSyntaxError SyntaxError
SyntaxError.prototype.nameSyntaxError.prototype.name "SyntaxError"
try {
eval("hoo bar");
} catch (e) {
console.log(e instanceof SyntaxError); // true
console.log(e.message);
console.log(e.name); // "SyntaxError"
console.log(e.stack); // Stack of the error
}
try {
throw new SyntaxError("Hello");
} catch (e) {
console.log(e instanceof SyntaxError); // true
console.log(e.message); // "Hello"
console.log(e.name); // "SyntaxError"
console.log(e.stack); // Stack of the error
}
| ECMAScript 2027 LanguageSpecification # sec-native-error-types-used-in-this-standard-syntaxerror |
| Web Proxy Viewer | New URL | Original Page |