archives

« Bugzilla Issues Index

#3211 — 10.2.1 says function declarations and expressions do NOT inherit strict mode


The problem sentence is

Function code that is part of a FunctionDeclaration, FunctionExpression, GeneratorDeclaration, GeneratorExpression, MethodDefinition, or ArrowFunction is strict function code if its GeneratorDeclaration, GeneratorExpression, MethodDefinition, or ArrowFunction is contained in strict mode code or if its FunctionBody begins with a Directive Prologue that contains a Use Strict Directive.

The second list in that sentence is missing FunctionDeclaration and FunctionExpression. As written, it claims that function declarations and expressions are only strict if they have a Use Strict Directive


fixed in rev28 editor's draft


fixed in rev28