source-academy/js-slang

REPL of Source §x Native does not recognize (most) function declarations

Closed this issue · 0 comments

Example program: https://share.sourceacademy.org/cqh09

Summary: Source §1 Native does not recognize any function declarations. Source §2-4 Native seems to treat the function name "f" special: If the function is called "f" it is recognized, otherwise it is not.

Source §1 Native:

Screenshot 2023-09-03 at 1 03 31 PM

Source §2-4 Native:

Screenshot 2023-09-03 at 1 07 45 PM