diff --git a/src/plugins/flow.js b/src/plugins/flow.js index 99f77cd93d..3db24cd886 100644 --- a/src/plugins/flow.js +++ b/src/plugins/flow.js @@ -488,13 +488,13 @@ pp.flowParsePrimaryType = function () { return this.finishNode(node, "FunctionTypeAnnotation"); case tt.string: - node.value = this.value; + node.rawValue = node.value = this.value; node.raw = this.input.slice(this.start, this.end); this.next(); return this.finishNode(node, "StringLiteralTypeAnnotation"); case tt.num: - node.value = this.value; + node.rawValue = node.value = this.value; node.raw = this.input.slice(this.start, this.end); this.next(); return this.finishNode(node, "NumberLiteralTypeAnnotation");