joyent/node — pull request #3396 by dscape (2012-06-09 17:51:46+00:00)
Title: Add test for regression in 0.7.9 on handling bad unicode sequences

This was a regression in 0.7.9.

## 0.6.x

```
$ node test/simple/test-bad-unicode.js
uc/ef
```

## 0.7.9

```
$ node test/simple/test-bad-unicode.js

/Users/dscape/Desktop/node/test/simple/test-bad-unicode.js:22
var bad_unicode = '\uc/ef';
^^^

module.js:437
var compiledWrapper = runInThisContext(wrapper, filename, true);
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:437:25)
at Object..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function._load (module.js:312:12)
at module.js:487:10
at EventEmitter._tickCallback (node.js:238:9)
```

## Master

This has been fixed in master, `make test` worked.