Propagate strict mode flag from scanner when parsing functions (#4262)

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
This commit is contained in:
Dániel Bátyai
2020-10-06 10:25:13 +02:00
committed by GitHub
parent fb1c21beb7
commit 17c8ec57bb
4 changed files with 20 additions and 1 deletions
+1
View File
@@ -236,6 +236,7 @@ typedef enum
* this flag must be combined with the type of function (e.g. async) */
SCANNER_FUNCTION_ASYNC = (1 << 4), /**< function is async function */
#endif /* ENABLED (JERRY_ESNEXT) */
SCANNER_FUNCTION_IS_STRICT = (1 << 5), /**< function is strict */
} scanner_function_flags_t;
/**