What are Gecko's Javascript interpreter engine semantics?

前端 未结 1 1497
轮回少年
轮回少年 2021-02-15 22:49

Edit

In consideration of the answer response below regarding the reference ECMAScript Language Specification - 11.13.2 Compound Assignment

Considering why thes

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-15 23:54

    JavaScript has an eager evaluation (call by value) execution model clearly spelled out in the ECMA standard. All of these questions can be resolved by carful reading of the standard. For example, the reason why the result is 11 above and not 12 is clearly spelled out in 11.13.2 of the standard. o.n is evaluated prior to the call to f() not after as specified by step 2.

    0 讨论(0)
提交回复
热议问题