mirror of https://github.com/tc39/test262.git
Test other-id-start/continue and vertical tilde in identifiers
This commit is contained in:
parent
5a4c067831
commit
6b8bd307d2
|
@ -0,0 +1,37 @@
|
||||||
|
// Copyright (C) 2017 André Bargull. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
id: sec-names-and-keywords
|
||||||
|
info: Test grandfathered characters of ID_Continue.
|
||||||
|
description: >
|
||||||
|
Grandfathered characters (Other_ID_Start + Other_ID_Continue)
|
||||||
|
---*/
|
||||||
|
|
||||||
|
// Other_ID_Start (Unicode 4.0)
|
||||||
|
var a\u2118;
|
||||||
|
var a\u212E;
|
||||||
|
var a\u309B;
|
||||||
|
var a\u309C;
|
||||||
|
|
||||||
|
// Other_ID_Start (Unicode 9.0)
|
||||||
|
var a\u1885;
|
||||||
|
var a\u1886;
|
||||||
|
|
||||||
|
// Other_ID_Continue (Unicode 4.1)
|
||||||
|
var a\u1369;
|
||||||
|
var a\u136A;
|
||||||
|
var a\u136B;
|
||||||
|
var a\u136C;
|
||||||
|
var a\u136D;
|
||||||
|
var a\u136E;
|
||||||
|
var a\u136F;
|
||||||
|
var a\u1370;
|
||||||
|
var a\u1371;
|
||||||
|
|
||||||
|
// Other_ID_Continue (Unicode 5.1)
|
||||||
|
var a\u00B7;
|
||||||
|
var a\u0387;
|
||||||
|
|
||||||
|
// Other_ID_Continue (Unicode 6.0)
|
||||||
|
var a\u19DA;
|
|
@ -0,0 +1,37 @@
|
||||||
|
// Copyright (C) 2017 André Bargull. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
id: sec-names-and-keywords
|
||||||
|
info: Test grandfathered characters of ID_Continue.
|
||||||
|
description: >
|
||||||
|
Grandfathered characters (Other_ID_Start + Other_ID_Continue)
|
||||||
|
---*/
|
||||||
|
|
||||||
|
// Other_ID_Start (Unicode 4.0)
|
||||||
|
var a℘; // U+2118
|
||||||
|
var a℮; // U+212E
|
||||||
|
var a゛; // U+309B
|
||||||
|
var a゜; // U+309C
|
||||||
|
|
||||||
|
// Other_ID_Start (Unicode 9.0)
|
||||||
|
var aᢅ; // U+1885
|
||||||
|
var aᢆ; // U+1886
|
||||||
|
|
||||||
|
// Other_ID_Continue (Unicode 4.1)
|
||||||
|
var a፩; // U+1369
|
||||||
|
var a፪; // U+136A
|
||||||
|
var a፫; // U+136B
|
||||||
|
var a፬; // U+136C
|
||||||
|
var a፭; // U+136D
|
||||||
|
var a፮; // U+136E
|
||||||
|
var a፯; // U+136F
|
||||||
|
var a፰; // U+1370
|
||||||
|
var a፱; // U+1371
|
||||||
|
|
||||||
|
// Other_ID_Continue (Unicode 5.1)
|
||||||
|
var a·; // U+00B7
|
||||||
|
var a·; // U+0387
|
||||||
|
|
||||||
|
// Other_ID_Continue (Unicode 6.0)
|
||||||
|
var a᧚; // U+19DA
|
|
@ -0,0 +1,19 @@
|
||||||
|
// Copyright (C) 2017 André Bargull. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
id: sec-names-and-keywords
|
||||||
|
info: Test grandfathered characters of ID_Start.
|
||||||
|
description: >
|
||||||
|
Grandfathered characters (Other_ID_Start)
|
||||||
|
---*/
|
||||||
|
|
||||||
|
// Other_ID_Start (Unicode 4.0)
|
||||||
|
var \u2118;
|
||||||
|
var \u212E;
|
||||||
|
var \u309B;
|
||||||
|
var \u309C;
|
||||||
|
|
||||||
|
// Other_ID_Start (Unicode 9.0)
|
||||||
|
var \u1885;
|
||||||
|
var \u1886;
|
|
@ -0,0 +1,19 @@
|
||||||
|
// Copyright (C) 2017 André Bargull. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
id: sec-names-and-keywords
|
||||||
|
info: Test grandfathered characters of ID_Start.
|
||||||
|
description: >
|
||||||
|
Grandfathered characters (Other_ID_Start)
|
||||||
|
---*/
|
||||||
|
|
||||||
|
// Other_ID_Start (Unicode 4.0)
|
||||||
|
var ℘; // U+2118
|
||||||
|
var ℮; // U+212E
|
||||||
|
var ゛; // U+309B
|
||||||
|
var ゜; // U+309C
|
||||||
|
|
||||||
|
// Other_ID_Start (Unicode 9.0)
|
||||||
|
var ᢅ; // U+1885
|
||||||
|
var ᢆ; // U+1886
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Copyright (C) 2017 André Bargull. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
id: sec-names-and-keywords
|
||||||
|
info: Test VERTICAL TILDE (U+2E2F) is not recognized as ID_Continue character.
|
||||||
|
description: >
|
||||||
|
VERTICAL TILDE is in General Category 'Lm' and [:Pattern_Syntax:].
|
||||||
|
negative:
|
||||||
|
type: SyntaxError
|
||||||
|
phase: early
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var a\u2E2F;
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Copyright (C) 2017 André Bargull. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
id: sec-names-and-keywords
|
||||||
|
info: Test VERTICAL TILDE (U+2E2F) is not recognized as ID_Continue character.
|
||||||
|
description: >
|
||||||
|
VERTICAL TILDE is in General Category 'Lm' and [:Pattern_Syntax:].
|
||||||
|
negative:
|
||||||
|
type: SyntaxError
|
||||||
|
phase: early
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var aⸯ; // U+2E2F
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Copyright (C) 2017 André Bargull. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
id: sec-names-and-keywords
|
||||||
|
info: Test VERTICAL TILDE (U+2E2F) is not recognized as ID_Start character.
|
||||||
|
description: >
|
||||||
|
VERTICAL TILDE is in General Category 'Lm' and [:Pattern_Syntax:].
|
||||||
|
negative:
|
||||||
|
type: SyntaxError
|
||||||
|
phase: early
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var \u2E2F;
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Copyright (C) 2017 André Bargull. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
id: sec-names-and-keywords
|
||||||
|
info: Test VERTICAL TILDE (U+2E2F) is not recognized as ID_Start character.
|
||||||
|
description: >
|
||||||
|
VERTICAL TILDE is in General Category 'Lm' and [:Pattern_Syntax:].
|
||||||
|
negative:
|
||||||
|
type: SyntaxError
|
||||||
|
phase: early
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var ⸯ; // U+2E2F
|
Loading…
Reference in New Issue