Skip to content

Conversation

@jlfwong
Copy link

@jlfwong jlfwong commented Jul 9, 2014

Fixes #16 (or at least the consumption part of it)

This is a WIP, but consumption of indexed source maps seems to be working. Let me know if you see anything going complete the wrong way, or if there are additional things that need implementing that I'm missing.

I'm not totally sure where the documentation for each of the functions should live - should I create stub functions on SourceMapConsumer.prototype that just throw errors saying they must be overridden, and place the documentation there? Or is it okay to duplicate the documentation between BasicSourceMapConsumer and IndexedSourceMapConsumer?

Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than sort it ourselves, we should assert that they are ordered correctly and throw an error with a helpful message if they aren't.

@fitzgen
Copy link
Contributor

fitzgen commented Jul 10, 2014

Thanks for the PR! There's some work to do, but we're going in the right direction. Ping me when you've made the requested updates.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: Capitalize and punctuate comments, please.

@jlfwong
Copy link
Author

jlfwong commented Oct 22, 2014

@fitzgen Okay, I've resolved all the TODOs, and this should be ready to go.

Sorry for the huge lag time! It looks like this has diverged a bit from master. How would you like me to merge the results, or would you like to handle that?

@jlfwong
Copy link
Author

jlfwong commented Nov 7, 2014

@fitzgen Ping?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Can we make this bit of if-string-then-strip-prefix-and-json-parse stuff a helper function in util since it is in two places now?

Copy link
Author

Choose a reason for hiding this comment

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

I don't understand what this replacement is about, so I'm not sure what I'd name that function

@fitzgen
Copy link
Contributor

fitzgen commented Nov 12, 2014

Thanks for the great work here! This looks good. Can you please rebase onto the latest master + fix up based on the final comments I had? Then I will merge!

@jlfwong jlfwong force-pushed the jlfwong-indexed-source-map branch from 592b6ef to 3d512cd Compare January 26, 2015 04:00
@jlfwong
Copy link
Author

jlfwong commented Jan 26, 2015

Doing a literal rebase proved crazy because of all the code flux since I opened this PR, so I just started from current master and ported my changes. I think I've addressed all the concerns except the ones I commented on (rebasing makes it hard to follow the comments though).

Unless there are significant blocking changes, I'd really appreciate merging this and dealing with minor issues in a later diff - keeping a diff this large up to date is tricky!

@fitzgen fitzgen closed this in 11ce28f Jan 26, 2015
@fitzgen
Copy link
Contributor

fitzgen commented Jan 26, 2015

Thanks! I've merged the PR and published a new version to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants