News for hackers. Stuff that matters.
Re:Multiline strings in JavaScript by mattdesl on Saturday July 12, 2014 @09:51AM (#8024531)
Cool hack, but a cleaner solution would be to just use fs.readFileSync if you really want long strings, and let browserify/brfs to inline it for you in the browser.

Using this in a library would be pretty unsafe, given how it's browser-dependent, is prone to issues with minifcation, and could just break with future versions of your JS engine.

There are no comments on this comment yet.