diff --git a/spec.emu b/spec.emu index e980553..b5b6973 100644 --- a/spec.emu +++ b/spec.emu @@ -235,6 +235,13 @@

An implementation can choose different behaviours for different optional errors.

+ + +

Assertions

+ +

Similar to ECMA-262's assert, a step that begins with "Assert:" asserts an invariant condition of its algorithm. For an algorithm describing steps to decode the source map format, an "Assert:" may assert invariants of the format itself.

+

An implementation may choose to implement such assertions by rewriting a step Assert: _condition_ as If not _condition_, optionally report an error. to be able to decode malformed source maps.

+
@@ -243,6 +250,7 @@