Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pegjs removal of offset() method. replaced by location() #67

Merged
merged 2 commits into from Oct 12, 2015

Conversation

ivoreis
Copy link
Contributor

@ivoreis ivoreis commented Sep 2, 2015

Fixes #66

@@ -48,7 +48,7 @@ docblock
case "ThisInstruction":
if ( docblock.thisParameter ) {
var error = new Error("Duplicate @this instruction");
error.offset = instruction.start;
error.location = instruction.start;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I think if you change these you have to also change this:

throw new Error(error.message + " " + getDebugString(source, filename, docblockStart + error.offset));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I'll do that.

jussi-kalliokoski added a commit that referenced this pull request Oct 12, 2015
Fix pegjs removal of offset() method. replaced by location()
@jussi-kalliokoski jussi-kalliokoski merged commit 917b127 into jussi-kalliokoski:master Oct 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants