File: unicodeEscapesInNames02%28target%3Des2015%29.errors.txt

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (46 lines) | stat: -rw-r--r-- 1,796 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
tests/cases/compiler/astralAsSurrogatePair.ts(1,17): error TS1127: Invalid character.
tests/cases/compiler/astralAsSurrogatePair.ts(1,18): error TS2305: Module '"./extendedEscapesForAstralsInVarsAndClasses.js"' has no exported member 'uD800'.
tests/cases/compiler/astralAsSurrogatePair.ts(1,23): error TS1127: Invalid character.
tests/cases/compiler/astralAsSurrogatePair.ts(1,24): error TS2305: Module '"./extendedEscapesForAstralsInVarsAndClasses.js"' has no exported member 'uDEA7'.


==== tests/cases/compiler/extendedEscapesForAstralsInVarsAndClasses.ts (0 errors) ====
    // Example from https://mathiasbynens.be/notes/javascript-identifiers-es6
    // Astral characters should be accepted in ES2015
    
    // U+102A7 CARIAN LETTER A2
    var 𐊧: string;
    var \u{102A7}: string;
    
    if (Math.random()) {
        𐊧 = "hello";
    }
    else {
        \u{102A7} = "hallo";
    }
    
    class Foo {
        \u{102A7}: string;
        constructor() {
            this.\u{102A7} = " world";
        }
        methodA() {
            return this.𐊧;
        }
    }
    
    export var _𐊧 = new Foo().\u{102A7} + new Foo().methodA();
    
    _\u{102A7} += "!";
    
==== tests/cases/compiler/astralAsSurrogatePair.ts (4 errors) ====
    import { _𐊧 as \uD800\uDEA7 } from "./extendedEscapesForAstralsInVarsAndClasses.js";
                    
!!! error TS1127: Invalid character.
                     ~~~~~
!!! error TS2305: Module '"./extendedEscapesForAstralsInVarsAndClasses.js"' has no exported member 'uD800'.
                          
!!! error TS1127: Invalid character.
                           ~~~~~
!!! error TS2305: Module '"./extendedEscapesForAstralsInVarsAndClasses.js"' has no exported member 'uDEA7'.