Baseline Widely available
TypeError
ìì±ìë ê°ì²´ë ì¼ë°ì ì¼ë¡ ê°ì´ 기ëíë ìë£íì´ ìëë¼ì ì°ì°ì í ì ìì ë ë°ìíë ì¤ë¥ë¥¼ ìì±í©ëë¤.
new TypeError()
new TypeError(message)
new TypeError(message, options)
new TypeError(message, fileName)
new TypeError(message, fileName, lineNumber)
TypeError()
TypeError(message)
TypeError(message, options)
TypeError(message, fileName)
TypeError(message, fileName, lineNumber)
매ê°ë³ìì°¸ê³ :
TypeError()
new
를 ì¬ì©íê±°ë í¹ì ì¬ì©íì§ ìê³ í¸ì¶ì´ ì¬ì©í©ëë¤. ë ë°©ë² ëª¨ë ìë¡ì´TypeError
를 ìì±í©ëë¤.
message
Optional
ì¬ëì´ ì½ì ì ìë ì¤ë¥ì ëí ì¤ëª
options
Optional
ë¤ìì ìì±ì ê°ì§ë ê°ì²´.
cause
Optional
ì¤ë¥ì í¹ì ìì¸ì ê°ë¦¬í¤ë ìì±. ì¤ë¥ë¥¼ ì¡ìì ì¢ ë ìì¸íê±°ë ì ì©í ì¤ë¥ ë©ìì§ì í¨ê» ìì¸ë¥¼ ë¤ì ë°ììí¬ ë ì´ ìì±ì ìë ì¤ë¥ë¥¼ ì ë¬íëë° ì¬ì©í ì ììµëë¤.
fileName
Optional ë¹íì¤
ìì¸ê° ë°ìí ì½ë를 ë´ê³ ìë íì¼ ì´ë¦
lineNumber
Optional ë¹íì¤
ìì¸ê° ë°ìí ì½ëì ì¤ ì
try {
null.f();
} catch (e) {
console.log(e instanceof TypeError); // true
console.log(e.message); // "null has no properties"
console.log(e.name); // "TypeError"
console.log(e.fileName); // "Scratchpad/1"
console.log(e.lineNumber); // 2
console.log(e.columnNumber); // 2
console.log(e.stack); // "@Scratchpad/2:2:3\n"
}
TypeError ìì±í기
try {
throw new TypeError("Hello", "someFile.js", 10);
} catch (e) {
console.log(e instanceof TypeError); // true
console.log(e.message); // "Hello"
console.log(e.name); // "TypeError"
console.log(e.fileName); // "someFile.js"
console.log(e.lineNumber); // 10
console.log(e.columnNumber); // 0
console.log(e.stack); // "@Scratchpad/2:2:9\n"
}
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4