Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homunculus

Package Overview
Dependencies
Maintainers
2
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homunculus - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

2

package.json
{
"name": "homunculus",
"version": "1.0.1",
"version": "1.1.0",
"description": "A lexer&parser by Javascript",

@@ -5,0 +5,0 @@ "maintainers": [

@@ -1163,2 +1163,20 @@ var IParser = require('../Parser');

}
else if(['[', '{'].indexOf(this.look.content()) != -1) {
node.add(this.lexbind());
}
else if(this.look.type() == Token.ID && ['get', 'set'].indexOf(this.look.content()) == -1) {
//LL2区分新增语法classbody内赋值
for(var i = this.index; i < this.length; i++) {
var next = this.tokens[i];
if(!S[next.type()]) {
if(next.content() == '(') {
node.add(this.method(noIn, noOf));
}
else {
node.add(this.lexbind());
}
return node;
}
}
}
else {

@@ -1165,0 +1183,0 @@ node.add(this.method(noIn, noOf));

@@ -1163,2 +1163,20 @@ define(function(require, exports, module) {var IParser = require('../Parser');

}
else if(['[', '{'].indexOf(this.look.content()) != -1) {
node.add(this.lexbind());
}
else if(this.look.type() == Token.ID && ['get', 'set'].indexOf(this.look.content()) == -1) {
//LL2区分新增语法classbody内赋值
for(var i = this.index; i < this.length; i++) {
var next = this.tokens[i];
if(!S[next.type()]) {
if(next.content() == '(') {
node.add(this.method(noIn, noOf));
}
else {
node.add(this.lexbind());
}
return node;
}
}
}
else {

@@ -1165,0 +1183,0 @@ node.add(this.method(noIn, noOf));

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc