Created
February 18, 2015 00:45
-
-
Save RichardLitt/d6513707efdb7926ab04 to your computer and use it in GitHub Desktop.
Broken test in static-module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Works: https://github.com/substack/static-module/blob/master/test/brfs/attribute_vars.js | |
| var x = 5, f = require('fs').readFileSync, y = 2; | |
| var src = f(__dirname + '/x.txt', 'utf8'); | |
| console.log(src); | |
| // Broken: | |
| var x = 5, fs = require('fs'), y = 2; | |
| var src = fs.readFileSync(__dirname + '/x.txt', 'utf8'); | |
| console.log(src); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result of the broken test: