homunculus
Advanced tools
Comparing version 0.10.3 to 0.10.4
{ | ||
"name": "homunculus", | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"description": "A lexer&parser by Javascript", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -38,8 +38,13 @@ var Es6Parser = require('../es6/Parser'); | ||
} | ||
while(this.look && this.look.type() == Token.PROPERTY) { | ||
node.add(this.attr()); | ||
while(this.look) { | ||
if(this.look.type() == Token.PROPERTY) { | ||
node.add(this.attr()); | ||
} | ||
else if(this.look.content() == '{') { | ||
node.add(this.spreadattr()); | ||
} | ||
else { | ||
break; | ||
} | ||
} | ||
if(this.look && this.look.content() == '{') { | ||
node.add(this.spreadattr()); | ||
} | ||
if(!this.look) { | ||
@@ -46,0 +51,0 @@ this.error(); |
@@ -38,8 +38,13 @@ define(function(require, exports, module) {var Es6Parser = require('../es6/Parser'); | ||
} | ||
while(this.look && this.look.type() == Token.PROPERTY) { | ||
node.add(this.attr()); | ||
while(this.look) { | ||
if(this.look.type() == Token.PROPERTY) { | ||
node.add(this.attr()); | ||
} | ||
else if(this.look.content() == '{') { | ||
node.add(this.spreadattr()); | ||
} | ||
else { | ||
break; | ||
} | ||
} | ||
if(this.look && this.look.content() == '{') { | ||
node.add(this.spreadattr()); | ||
} | ||
if(!this.look) { | ||
@@ -46,0 +51,0 @@ this.error(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19229
664672
89