felixge / node-sandboxed-module

A sandboxed node.js module loader that lets you inject dependencies into your modules.
MIT License
342 stars 42 forks source link

Fix compling souces ending with an end-of-line comment #37

Closed maarten-t closed 9 years ago

maarten-t commented 9 years ago

Sources ending with an end-of-line comment (not followed by a newline character) aren't wrapped properly. The second part of the wrapper is treated as part of the comment in such a case. Adding a newline character in fixes this issue.

domenic commented 9 years ago

Merged with typo fixes as e360cadef2fb158286b23c083cf049acfb115a58; will release 1.0.2 shortly. Thanks!