puma icon indicating copy to clipboard operation
puma copied to clipboard

Javascript Semantic Declaration order is not respected

Open emravera opened this issue 11 years ago • 2 comments

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;
}

emravera avatar Nov 06 '14 23:11 emravera

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);

ryserCar avatar Sep 22 '17 22:09 ryserCar

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; } `

emravera avatar Oct 10 '17 18:10 emravera