From d0ac65a93474e0d7336aea7235d8043c7ad8b623 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 6 Jun 2015 03:32:35 +0100 Subject: [PATCH] add _paths in t.inherits --- src/babel/types/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/babel/types/index.js b/src/babel/types/index.js index b6fd35ec43..5ef490b0fa 100644 --- a/src/babel/types/index.js +++ b/src/babel/types/index.js @@ -293,10 +293,12 @@ export function inherits(child: Object, parent: Object): Object { if (!child || !parent) return child; child._scopeInfo = parent._scopeInfo; - child.range = parent.range; - child.start = parent.start; - child.loc = parent.loc; - child.end = parent.end; + child._paths = parent._paths; + + child.range = parent.range; + child.start = parent.start; + child.loc = parent.loc; + child.end = parent.end; child.typeAnnotation = parent.typeAnnotation; child.returnType = parent.returnType;