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

Firefox javascript console filled with warnings #51

Open
smcardle opened this issue Sep 3, 2015 · 0 comments
Open

Firefox javascript console filled with warnings #51

smcardle opened this issue Sep 3, 2015 · 0 comments

Comments

@smcardle
Copy link

smcardle commented Sep 3, 2015

When using mespeak with firefox the console is filled with warnings.

The below is an example using the mespeak.full.js library so that I could see where these are

...
SyntaxError: unreachable code after return statement mespeak.full.js:4167:4
SyntaxError: unreachable code after return statement mespeak.full.js:4376:4
SyntaxError: unreachable code after return statement mespeak.full.js:4386:4
SyntaxError: unreachable code after return statement mespeak.full.js:4413:4
SyntaxError: unreachable code after return statement mespeak.full.js:5232:4
SyntaxError: unreachable code after return statement mespeak.full.js:5301:4
SyntaxError: unreachable code after return statement mespeak.full.js:5375:4
SyntaxError: unreachable code after return statement mespeak.full.js:5448:4
SyntaxError: unreachable code after return statement mespeak.full.js:5558:4
SyntaxError: unreachable code after return statement mespeak.full.js:5606:4
SyntaxError: unreachable code after return statement mespeak.full.js:5640:4
...

An example of code from mespeak.full.js showing why this happens follows
;
return; //@line 846 "wavegen.cpp"
return;

There are lots of these double return statements throughout the file and it is very annoying when using the library with FireFox. Chrome has no problem.

The problem occurs with both the full.js and minified version

Regards

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

No branches or pull requests

1 participant