node/test/parallel/test-bad-unicode.js

11 lines
158 B
JavaScript

var assert = require('assert'),
exception = null;
try {
eval('"\\uc/ef"');
} catch (e) {
exception = e;
}
assert(exception instanceof SyntaxError);