Chromium Code Reviews| Index: frog/leg/compile_time_constants.dart |
| diff --git a/frog/leg/compile_time_constants.dart b/frog/leg/compile_time_constants.dart |
| index c4122e57b77447ec3bcd9c60ccf34abb5e6b9797..686a36a06c0f434098a1a9c19d3d0e0daf955641 100644 |
| --- a/frog/leg/compile_time_constants.dart |
| +++ b/frog/leg/compile_time_constants.dart |
| @@ -96,6 +96,7 @@ class CompileTimeConstantHandler extends CompilerTask { |
| if (value is num) return "$value"; |
| if (value === true) return "true"; |
| if (value === false) return "false"; |
| + if (value is SourceString) return value.stringValue; |
|
floitsch
2012/02/14 10:40:57
The string must be escaped.
Please also add a smal
|
| // TODO(floitsch): support more values. |
| compiler.unimplemented("CompileTimeConstantHandler.getJsCodeForVariable", |