Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-bad-unicode.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a4df4ed9ed7005d400087a1e1e92563704a05f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';
require('../common');
const assert = require('assert');
let exception = null;

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

assert(exception instanceof SyntaxError);