[BUG] argument inconsistencies between HTML5 and Windows

Completed

Comments

5 comments

  • chmod777

    Another example, this one also throws an error in the IDE but lets you compile: "number of arguments for function myScript2 expected 0 got 2"

    function myScript2(){
    show_message(argument0);
    }

    myScript2("Hello", "World");

    0
    Comment actions Permalink
  • Core Tech

    Please attach a minimal project YYZ (File -> Export project) that illustrates the problem - use dropbox, onedrive, google drive with a public downloadable link to the project (if it is too big to be attached here)

    @QA - please file a bug

    Russell

    0
    Comment actions Permalink
  • chmod777

    Sample uploaded with both examples:
    https://1drv.ms/u/s!Av9emJOJRGSMgUd8A4i7OP1ETeH2?e=7MbFfX

    0
    Comment actions Permalink
  • YoYo QA Dept

    Hello,

    We have reproduced this issue now and I have added it to our bug database, so I'll mark the thread as Completed.
     
    Thanks again.
    0
    Comment actions Permalink
  • YoYo QA Dept

    Hi there,

    I have an update on your issue.

    This is intended and not a bug. The IDE gives a syntax error (as it is) but at runtime any parameters that are not given will be set as undefined.

    I hope this answers your question.

    Many thanks.

    0
    Comment actions Permalink

Please sign in to leave a comment.