From 3c5b4f2d89720f49bdef6018a0460f8f6b7f120d Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 21 Jul 2015 02:37:43 +0100 Subject: [PATCH] update flow literal annotations to have a rawValue --- src/plugins/flow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");