diff --git a/test/language/identifiers/other_id_continue-escaped.js b/test/language/identifiers/other_id_continue-escaped.js new file mode 100644 index 0000000000000000000000000000000000000000..48efba77575ac895d0aa50c5a98d7734a9af0932 --- /dev/null +++ b/test/language/identifiers/other_id_continue-escaped.js @@ -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; diff --git a/test/language/identifiers/other_id_continue.js b/test/language/identifiers/other_id_continue.js new file mode 100644 index 0000000000000000000000000000000000000000..ebe7f3fca4c742566d8d387cadf158725cfb42d6 --- /dev/null +++ b/test/language/identifiers/other_id_continue.js @@ -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 diff --git a/test/language/identifiers/other_id_start-escaped.js b/test/language/identifiers/other_id_start-escaped.js new file mode 100644 index 0000000000000000000000000000000000000000..2173e0959f531d6668dd49b449ed9cb702b9ff90 --- /dev/null +++ b/test/language/identifiers/other_id_start-escaped.js @@ -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; diff --git a/test/language/identifiers/other_id_start.js b/test/language/identifiers/other_id_start.js new file mode 100644 index 0000000000000000000000000000000000000000..04fcfa36084c5c98e8f880a9326ccb69d9072bda --- /dev/null +++ b/test/language/identifiers/other_id_start.js @@ -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 diff --git a/test/language/identifiers/vertical-tilde-continue-escaped.js b/test/language/identifiers/vertical-tilde-continue-escaped.js new file mode 100644 index 0000000000000000000000000000000000000000..b7acc2786dc9c50cd6b6cd67a9414cf2f76225cb --- /dev/null +++ b/test/language/identifiers/vertical-tilde-continue-escaped.js @@ -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; diff --git a/test/language/identifiers/vertical-tilde-continue.js b/test/language/identifiers/vertical-tilde-continue.js new file mode 100644 index 0000000000000000000000000000000000000000..ed07cd02914e0092038057ec379f008c67ec8b7d --- /dev/null +++ b/test/language/identifiers/vertical-tilde-continue.js @@ -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 diff --git a/test/language/identifiers/vertical-tilde-start-escaped.js b/test/language/identifiers/vertical-tilde-start-escaped.js new file mode 100644 index 0000000000000000000000000000000000000000..ee0f2fc44c4f387b28367758cf1bef63db92bfb6 --- /dev/null +++ b/test/language/identifiers/vertical-tilde-start-escaped.js @@ -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; diff --git a/test/language/identifiers/vertical-tilde-start.js b/test/language/identifiers/vertical-tilde-start.js new file mode 100644 index 0000000000000000000000000000000000000000..815a6654d81796dc5d517a952ac8139a733e3ca6 --- /dev/null +++ b/test/language/identifiers/vertical-tilde-start.js @@ -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