ECMAScript Specification: Question Mark Meaning in the Specification

I see a lot of cases Let value be ?, Return ? sthin the specification. example

Does anyone know what is the point ?.

+2
source share
1 answer

From the algorithm convention ,

Abstract operations using a functional application style and a method application style that has a prefix ?indicates that ReturnIfAbrupt should be applied to the resulting Record Completion .

For instance,? operationName () is equivalent to ReturnIfAbrupt (operationName ()).

,? someValue.operationName() ReturnIfAbrupt (someValue.operationName()).

+2

Source: https://habr.com/ru/post/1687226/


All Articles