@@ -114,7 +114,7 @@ jsp_early_error_start_checking_of_prop_names (void)
114
114
}
115
115
116
116
void
117
- jsp_early_error_add_prop_name (jsp_operand_t op, prop_type pt)
117
+ jsp_early_error_add_prop_name (const jsp_operand_t & op, prop_type pt)
118
118
{
119
119
JERRY_ASSERT (op.is_literal_operand ());
120
120
STACK_PUSH (props, create_prop_literal (lit_get_literal_by_cp (op.get_literal ()), pt));
@@ -200,11 +200,14 @@ jsp_early_error_start_checking_of_vargs (void)
200
200
STACK_PUSH (size_t_stack, STACK_SIZE (props));
201
201
}
202
202
203
- void jsp_early_error_add_varg (jsp_operand_t op)
203
+ /* *
204
+ * Add argument of a function declaration or function expression to the list
205
+ */
206
+ void jsp_early_error_add_varg (const jsp_operand_t &op) /* operand, containing an argument */
204
207
{
205
208
JERRY_ASSERT (op.is_literal_operand ());
206
209
STACK_PUSH (props, create_prop_literal (lit_get_literal_by_cp (op.get_literal ()), VARG));
207
- }
210
+ } /* jsp_early_error_add_varg */
208
211
209
212
static void
210
213
emit_error_on_eval_and_arguments (literal_t lit, locus loc __attr_unused___)
@@ -221,7 +224,7 @@ emit_error_on_eval_and_arguments (literal_t lit, locus loc __attr_unused___)
221
224
}
222
225
223
226
void
224
- jsp_early_error_check_for_eval_and_arguments_in_strict_mode (jsp_operand_t op, bool is_strict, locus loc)
227
+ jsp_early_error_check_for_eval_and_arguments_in_strict_mode (const jsp_operand_t & op, bool is_strict, locus loc)
225
228
{
226
229
if (is_strict
227
230
&& op.is_literal_operand ())
0 commit comments