puma
puma copied to clipboard
Javascript Semantic Declaration order is not respected
The semantic declaration order is not respected in Pumascript. The testcase that must pass is the following one:
foo(2,3);
function foo(a, b) {
return a + b;
}
Ema can you give me an example of a failing statement that I can use in the puma-editor? I tried the following example and it worked fine I believe:
/** @meta */ function sum(a, b) { return pumaAst( $a + $b); } sum(5, 6);
The problem is if you call some function that was not defined yet. This in JS works fine but in puma not.
If you see the example, you can use it to verify:
`foo(2,3);
function foo(a, b) { return a + b; } `