test262/test/language/literals/string/S7.8.4_A3.1_T2.js

17 lines
350 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: "StringLiteral :: \"\\\" or '\\' is not correct"
es5id: 7.8.4_A3.1_T2
description: Checking if execution of "'\'" fails
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
//CHECK#1
'\'