Показать сообщение отдельно
  #11 (permalink)  
Старый 22.11.2014, 22:47
Аватар для bes
bes bes вне форума
Профессор
Отправить личное сообщение для bes Посмотреть профиль Найти все сообщения от bes
 
Регистрация: 22.03.2012
Сообщений: 3,744

кстати, Илья забыл перевести одну важную строчку
http://es5.javascript.ru/x8.html#x8.9
Цитата:
8.9 Тип спецификации Completion # Ⓣ
Тип Completion Завершение используется для объяснения поведения инструкций (break, continue, return и throw), производящих нелокальную передачу управления. Значения типа Completion представляют собой триады в формате (тип, значение, цель), где тип – один из следующих: normal, break, continue, return или throw, значение – любое значение языка ECMAScript или empty, а цель – любой идентификатор ECMAScript или empty.

Термин "непредвиденное завершение" abrupt completion означает любое завершение с типом, отличным от normal.


http://www.ecma-international.org/pu...T/Ecma-262.pdf
Цитата:
8.9 The Completion Specification Type
The Completion type is used to explain the behaviour of statements (break, continue, return and throw)
that perform nonlocal transfers of control. Values of the Completion type are triples of the form (type, value,
target), where type is one of normal, break, continue, return, or throw, value is any ECMAScript language
value or empty, and target is any ECMAScript identifier or empty. If cv is a completion value then cv.type,
cv.value, and cv.target may be used to directly refer to its constituent values.


The term ―abrupt completion‖ refers to any completion with a type other than normal.
Ответить с цитированием