A Directive Prologue is the longest sequence of ExpressionStatement productions occurring as the initial
SourceElement productions of a Program or FunctionBody and where each ExpressionStatement in the sequence
consists entirely of a StringLiteral token followed a semicolon. The semicolon may appear explicitly or may be
inserted by automatic semicolon insertion. A Directive Prologue may be an empty sequence.
An immutable set of directive prologues should be available to the currently executing code. This will be used to support strict mode code.
Possible Implementations
Bit flags
A case insensitive set of strings
A object containing properties that correspond to directive prologues
An immutable set of directive prologues should be available to the currently executing code. This will be used to support strict mode code.
Possible Implementations