Skip to content

Conversation

@wlawt
Copy link
Contributor

@wlawt wlawt commented Jul 3, 2020

The browser test CSV > input > should interpret CRLF newlines was throwing an error for buffer not being defined.

A quick fix was to read it as a string instead of a buffer.

This also passes the browser tests and the Sauce Labs tests.

@SheetJSDev SheetJSDev requested a review from mohammedsahl July 3, 2020 00:08
Copy link
Contributor

@mohammedsahl mohammedsahl left a comment

Choose a reason for hiding this comment

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

LGTM. Has this been an issue for some time or did it just pop up recently? Just curious

@SheetJSDev
Copy link
Contributor

Relatively recently. When we originally made the test for nodejs, Buffer was used. That's not available in browser. @wlawt found that the some of the node tests weren't be run in-browser, and tried reconciling the two test suites in a previous commit. He tried to run the browser tests and found this issue, and the PR addresses the problem (https://app.saucelabs.com/builds/c1670f5dd3384c968095e8ed797c3d57 is the browser test run)

@mohammedsahl mohammedsahl merged commit 5b08ba7 into master Jul 3, 2020
@SheetJSDev SheetJSDev deleted the change-buffer-to-string branch July 19, 2020 02:06
saarCiklum pushed a commit to Folcon/js-xlsx that referenced this pull request Aug 20, 2020
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.

3 participants