Dependencies update

This commit is contained in:
sanex3339
2017-09-04 12:10:55 +03:00
parent 3c79ad3e55
commit 27fe24f70a
5 changed files with 34 additions and 28 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ export class NodeUtils {
* @returns {TStatement[]}
*/
public static convertCodeToStructure (code: string): TStatement[] {
let structure: ESTree.Program = esprima.parse(code);
let structure: ESTree.Program = esprima.parseScript(code);
structure = NodeUtils.addXVerbatimPropertyToLiterals(structure);
structure = NodeUtils.parentize(structure);