Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

eval is evil #19

Closed
nemeria opened this Issue · 2 comments

3 participants

nemeria Lloyd Hilaiel Austin King
nemeria

Hello,

I updated to beta2 and i noticed that po files are no more supported, only json are... Not a good suprise but anyway...

As I already have a complex buildchain, i don't use your "bin/compilers", I use the last po2json lib to convert my po files to json.
Eval function is evil for many reasons and should not be used in that case because you just want to parse the json to an object and JSON.parse() is here for that.

your block near line 82 would just be :
var json_locale_data = JSON.parse(fs.readFileSync(json_file_path(l)).toString());

Lloyd Hilaiel
Austin King ozten referenced this issue from a commit
Austin King ozten Removing use of eval. Fixes Issue #19
A more robust fix needs to be coordinated in mozilla/browserid
as well as Issue #15.
648dec4
Austin King
Collaborator

Fixed in commit 648dec4e203fbe93ea99cb7718b5106be9a30c82

A more robust fix is to switch to proper JSON files and to fix browserid's toolchaining to use JSON files and convert them to JavaScript files as needed.

Austin King ozten closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.