Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript Semantic Declaration order is not respected #1

Open
emravera opened this issue Nov 6, 2014 · 2 comments
Open

Javascript Semantic Declaration order is not respected #1

emravera opened this issue Nov 6, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@emravera
Copy link
Collaborator

emravera commented Nov 6, 2014

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 emravera added the bug label Nov 6, 2014
@albertinadx albertinadx self-assigned this Dec 4, 2015
@albertinadx albertinadx modified the milestone: PumaScript release 1 Dec 4, 2015
@ryserCar
Copy link
Collaborator

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

@emravera
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants