ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

Stop using eval for processed value. #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
util/util.js has the following

export function evaluateStringLiteral(token) {
  // TODO(arv): I feel dirty using eval here. We should just do the right
  // thing!
  return eval(token.value);
}

LiteralToken has a similar TODO:

 * TODO: A way to get the processed value, rather than the raw value.

Original issue reported on code.google.com by arv@chromium.org on 17 Oct 2012 at 5:45

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/traceur-compiler/source/detail?r=1f8fddb

Original comment by arv@chromium.org on 4 Nov 2012 at 10:04