1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 1 23 23 1 13 1 | var BaseExpression = require("./base"); function StringExpression(value) { this.value = value; BaseExpression.apply(this, arguments); } BaseExpression.extend(StringExpression, { type: "string", toJavaScript: function() { return "\"" + this.value.replace(/"/g, "\\\"") + "\""; } }); module.exports = StringExpression; |