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);