Skip to content

Commit

Permalink
Quick fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
zaach committed Jul 22, 2010
1 parent e4067cb commit 21f68e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Compiler () {

Compiler.prototype = {
parse: function (source) {
return new this.parser.parse(source);
return this.parser.parse(source);
},
toJS: function (ast) {
var s = ast.toJS(0);
Expand Down
2 changes: 1 addition & 1 deletion lib/js/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ var def = function def(proto, name, extend, construct) {

// Program node
def(node,'Program', { });
def(expr,'Program', { });

// Identifier node
def(node,'IdPatt', { }, function (name) {
this.init({name:name});
this.fire('parse');
this.nodeType = 'IdPatt';
return this;
});

Expand Down

0 comments on commit 21f68e1

Please sign in to comment.