Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ECMAScript Specification: meaning of question mark in the spec

I have see many occurrence of Let value be ?, Return ? sth in the specification.example

Anyone know what is the meaning of the ?.

like image 545
Morty Choi Avatar asked Sep 02 '25 17:09

Morty Choi


1 Answers

From Algorithm Conventions,

Abstract operations referenced using the functional application style and the method application style that are prefixed by ? indicate that ReturnIfAbrupt should be applied to the resulting Completion Record.

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

Similarly, ? someValue.operationName() is equivalent to ReturnIfAbrupt(someValue.operationName()).

like image 164
Oriol Avatar answered Sep 05 '25 09:09

Oriol