summaryrefslogtreecommitdiff
path: root/test/parallel/test-bad-unicode.js
blob: 6dcabc8fd47b968b058f0e0bf96a4e7e1707253e (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';
var assert = require('assert'),
    exception = null;

try {
  eval('"\\uc/ef"');
} catch (e) {
  exception = e;
}

assert(exception instanceof SyntaxError);