mirror of https://github.com/tc39/test262.git
23 lines
677 B
JavaScript
23 lines
677 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
info: >
|
|
CharacterEscape :: IdentityEscapeSequence :: SourceCharacter but not
|
|
IdentifierPart
|
|
es5id: 15.10.2.10_A5.1_T1
|
|
description: "Tested string is \"~`!@#$%^&*()-+={[}]|\\\\:;'<,>./?\" + '\"'"
|
|
---*/
|
|
|
|
//CHECK#1
|
|
var non_ident = "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"';
|
|
var k = -1;
|
|
do {
|
|
k++;
|
|
arr = new RegExp("\\" + non_ident[k], "g").exec(non_ident);
|
|
} while ((arr !== null) && (arr[0] === non_ident[k]))
|
|
|
|
if (non_ident.length !== k) {
|
|
$ERROR('#1: IdentityEscapeSequence :: SourceCharacter but not IdentifierPart');
|
|
}
|