archives

« Bugzilla Issues Index

#4055 — 9.2.2.1 PrepareForOrdinaryCall: Unnecessary ReturnIfAbrupt in step 8


9.2.2.1 PrepareForOrdinaryCall( F, newTarget )

Steps 8-9 can be removed, because PrepareForOrdinaryCall is no longer fallible.


This isn't explicitly dealt with in NewFunctionEnvironment but what if the new Environment can't be created because of low memory or stack overflow?


OOM or stack overflow should be ignored by the specification, otherwise a whole lot more operations need ReturnIfAbrupt calls. For example, string concatenation or recursive abstract operation calls etc.


fixed in rev35 editor's draft

yes, that's generally how it's done except for AllocateArrayBuffer which does need an explicit can't allocate exception.


fixed in rev35