Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Commit

Permalink
Fix: Re-expose parse method (fixes #519) (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
platinumazure authored and JamesHenry committed Sep 30, 2018
1 parent 655359f commit aa0fe13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ exports.parseForESLint = function parseForESLint(code, options) {
return { ast };
};

exports.parse = function(code, options) {
return this.parseForESLint(code, options).ast;
};

// Deep copy.
/* istanbul ignore next */
exports.Syntax = (function() {
Expand Down

0 comments on commit aa0fe13

Please sign in to comment.