mirror of https://github.com/tc39/test262.git
34 lines
540 B
JavaScript
34 lines
540 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
info: NonEscapeSequence is not EscapeCharacter
|
|
es5id: 7.8.4_A4.3_T7
|
|
description: "EscapeCharacter :: SingleEscapeCharacter :: one of b f n r t v"
|
|
---*/
|
|
|
|
//CHECK#bfnrtv
|
|
if ("b" === "\b") {
|
|
$ERROR('#b');
|
|
}
|
|
|
|
if ("f" === "\f") {
|
|
$ERROR('#f');
|
|
}
|
|
|
|
if ("n" === "\n") {
|
|
$ERROR('#n');
|
|
}
|
|
|
|
if ("r" === "\r") {
|
|
$ERROR('#r');
|
|
}
|
|
|
|
if ("t" === "\t") {
|
|
$ERROR('#t');
|
|
}
|
|
|
|
if ("v" === "\v") {
|
|
$ERROR('#v');
|
|
}
|