Skip to content

jerryx_arg_transform_optional does not advance iterator in case the value is undefined #2288

Closed
@martijnthe

Description

@martijnthe

I would expect in this line to pop the iterator if js_arg is undefined.
Otherwise there can only be a single optional argument. Another consequence is that jerryx_arg_transform_optional does not work together with jerryx_arg_transform_object_properties because the iterator does not get advanced when an optional arg is undefined...

It looks like the unit test doesn't have either of these scenarios as a test case.

@jiangzidong do you agree this is a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourjerry-extRelated to the jerry-ext library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions