/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/tests/languages/javascript/issue1526.test
35 строк
813 B
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
fetch('some-resource.json') .then(response => response.json()) .catch(console.error); ---------------------------------------------------- [ ["function", "fetch"], ["punctuation", "("], ["string", "'some-resource.json'"], ["punctuation", ")"], ["punctuation", "."], ["function", "then"], ["punctuation", "("], ["parameter", ["response"]], ["operator", "=>"], " response", ["punctuation", "."], ["function", "json"], ["punctuation", "("], ["punctuation", ")"], ["punctuation", ")"], ["punctuation", "."], ["function", "catch"], ["punctuation", "("], "console", ["punctuation", "."], "error", ["punctuation", ")"], ["punctuation", ";"] ] ---------------------------------------------------- Checks for catch function which is not a keyword. See #1526