Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test-bad-unicode: update to reflect V8 3.11 behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jun 14, 2012
1 parent 39d2337 commit 34b0b6a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/simple/test-bad-unicode.js
Expand Up @@ -18,9 +18,14 @@
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
var assert = require('assert');
var bad_unicode = '\uc/ef';

console.log(bad_unicode);
var assert = require('assert'),
exception = null;

assert.equal(bad_unicode, "uc/ef");
try {
eval('"\\uc/ef"');
} catch (e) {
exception = e;
}

assert(exception instanceof SyntaxError);

0 comments on commit 34b0b6a

Please sign in to comment.