/third_party/typescript/tests/baselines/reference/ |
D | literalsInComputedProperties1.types | 24 x[1].toExponential(); 25 >x[1].toExponential() : string 26 >x[1].toExponential : (fractionDigits?: number) => string 30 >toExponential : (fractionDigits?: number) => string 32 x[2].toExponential(); 33 >x[2].toExponential() : string 34 >x[2].toExponential : (fractionDigits?: number) => string 38 >toExponential : (fractionDigits?: number) => string 40 x[3].toExponential(); 41 >x[3].toExponential() : string [all …]
|
D | literalsInComputedProperties1.symbols | 19 x[1].toExponential(); 20 >x[1].toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 23 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 25 x[2].toExponential(); 26 >x[2].toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 29 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 31 x[3].toExponential(); 32 >x[3].toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 35 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 37 x[4].toExponential(); [all …]
|
D | literalsInComputedProperties1.js | 8 x[1].toExponential(); 9 x[2].toExponential(); 10 x[3].toExponential(); 11 x[4].toExponential(); 21 y[1].toExponential(); 22 y[2].toExponential(); 23 y[3].toExponential(); 24 y[4].toExponential(); 34 z[1].toExponential(); 35 z[2].toExponential(); [all …]
|
D | pathMappingBasedModuleResolution5_classic.types | 18 use(x.toExponential()); 19 >use(x.toExponential()) : void 21 >x.toExponential() : string 22 >x.toExponential : (fractionDigits?: number) => string 24 >toExponential : (fractionDigits?: number) => string 26 use(y.toExponential()); 27 >use(y.toExponential()) : void 29 >y.toExponential() : string 30 >y.toExponential : (fractionDigits?: number) => string 32 >toExponential : (fractionDigits?: number) => string [all …]
|
D | pathMappingBasedModuleResolution5_node.types | 18 use(x.toExponential()); 19 >use(x.toExponential()) : void 21 >x.toExponential() : string 22 >x.toExponential : (fractionDigits?: number) => string 24 >toExponential : (fractionDigits?: number) => string 26 use(y.toExponential()); 27 >use(y.toExponential()) : void 29 >y.toExponential() : string 30 >y.toExponential : (fractionDigits?: number) => string 32 >toExponential : (fractionDigits?: number) => string [all …]
|
D | pathMappingBasedModuleResolution5_classic.symbols | 18 use(x.toExponential()); 20 >x.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 22 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 24 use(y.toExponential()); 26 >y.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 28 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 30 use(z.toExponential()); 32 >z.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 34 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 36 use(z1.toExponential()); [all …]
|
D | pathMappingBasedModuleResolution5_node.symbols | 18 use(x.toExponential()); 20 >x.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 22 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 24 use(y.toExponential()); 26 >y.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 28 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 30 use(z.toExponential()); 32 >z.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 34 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 36 use(z1.toExponential()); [all …]
|
D | literalsInComputedProperties1.errors.txt | 14 x[1].toExponential(); 15 x[2].toExponential(); 16 x[3].toExponential(); 17 x[4].toExponential(); 27 y[1].toExponential(); 28 y[2].toExponential(); 29 y[3].toExponential(); 30 y[4].toExponential(); 40 z[1].toExponential(); 41 z[2].toExponential(); [all …]
|
D | numberPropertyAccess.types | 6 var a = x.toExponential(); 8 >x.toExponential() : string 9 >x.toExponential : (fractionDigits?: number) => string 11 >toExponential : (fractionDigits?: number) => string 21 var c = x['toExponential'](); 23 >x['toExponential']() : string 24 >x['toExponential'] : (fractionDigits?: number) => string 26 >'toExponential' : "toExponential"
|
D | pathMappingBasedModuleResolution5_node.js | 11 use(x.toExponential()); 12 use(y.toExponential()); 13 use(z.toExponential()); 14 use(z1.toExponential()); 50 use(file1_1.x.toExponential()); 51 use(file2_1.y.toExponential()); 52 use(file3_1.z.toExponential()); 53 use(file4_1.z1.toExponential());
|
D | exportDefaultInterface.symbols | 10 a.value.toExponential(); 11 >a.value.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 15 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 25 a.value.toExponential(); 26 >a.value.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 30 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --))
|
D | exportDefaultAbstractClass.symbols | 10 new B().a.toExponential(); 11 >new B().a.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 15 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 25 new C().a.toExponential(); 26 >new C().a.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 30 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --))
|
D | exportDefaultInterface.types | 8 a.value.toExponential(); 9 >a.value.toExponential() : string 10 >a.value.toExponential : (fractionDigits?: number) => string 14 >toExponential : (fractionDigits?: number) => string 23 a.value.toExponential(); 24 >a.value.toExponential() : string 25 >a.value.toExponential : (fractionDigits?: number) => string 29 >toExponential : (fractionDigits?: number) => string
|
D | pathMappingBasedModuleResolution5_classic.js | 11 use(x.toExponential()); 12 use(y.toExponential()); 13 use(z.toExponential()); 14 use(z1.toExponential()); 60 use(file1_1.x.toExponential()); 61 use(file2_1.y.toExponential()); 62 use(file3_1.z.toExponential()); 63 use(file4_1.z1.toExponential());
|
D | superCallParameterContextualTyping1.types | 16 // Ensure 'value' is of type 'number (and not '{}') by using its 'toExponential()' method. 17 constructor() { super(value => String(value.toExponential())); } 18 >super(value => String(value.toExponential())) : void 20 >value => String(value.toExponential()) : (value: number) => string 22 >String(value.toExponential()) : string 24 >value.toExponential() : string 25 >value.toExponential : (fractionDigits?: number) => string 27 >toExponential : (fractionDigits?: number) => string
|
D | exportDefaultAbstractClass.types | 10 new B().a.toExponential(); 11 >new B().a.toExponential() : string 12 >new B().a.toExponential : (fractionDigits?: number) => string 17 >toExponential : (fractionDigits?: number) => string 27 new C().a.toExponential(); 28 >new C().a.toExponential() : string 29 >new C().a.toExponential : (fractionDigits?: number) => string 34 >toExponential : (fractionDigits?: number) => string
|
D | numberPropertyAccess.symbols | 5 var a = x.toExponential(); 7 >x.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 9 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 17 var c = x['toExponential'](); 20 >'toExponential' : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --))
|
D | lambdaParamTypes.js | 13 thing.doSomething((x, y) => x.id.toExponential(0)); // x.id should be string, so should be OK 15 thing.doSomething((x, y) => y.id.toExponential(0)); // x.id should be string, so should be OK 21 thing.doSomething((x, y) => x.name.toExponential(0)); // x.name should be string, no toExponential … 23 thing.doSomething((x, y) => y.name.toExponential(0)); 30 thing.doSomething(function (x, y) { return x.id.toExponential(0); }); // x.id should be string, so … 32 thing.doSomething(function (x, y) { return y.id.toExponential(0); }); // x.id should be string, so … 37 thing.doSomething(function (x, y) { return x.name.toExponential(0); }); // x.name should be string,… 39 thing.doSomething(function (x, y) { return y.name.toExponential(0); });
|
D | lambdaParamTypes.types | 51 thing.doSomething((x, y) => x.id.toExponential(0)); // x.id should be string, so should be OK 52 >thing.doSomething((x, y) => x.id.toExponential(0)) : void 56 >(x, y) => x.id.toExponential(0) : (x: { name: string; id: number; }, y: { name: string; id: number… 59 >x.id.toExponential(0) : string 60 >x.id.toExponential : (fractionDigits?: number) => string 64 >toExponential : (fractionDigits?: number) => string 83 thing.doSomething((x, y) => y.id.toExponential(0)); // x.id should be string, so should be OK 84 >thing.doSomething((x, y) => y.id.toExponential(0)) : void 88 >(x, y) => y.id.toExponential(0) : (x: { name: string; id: number; }, y: { name: string; id: number… 91 >y.id.toExponential(0) : string [all …]
|
D | genericReduce.js | 8 n1.toExponential(2); // should not error if 'n1' is correctly number. 10 n2.toExponential(2); // should not error if 'n2' is correctly number. 13 n3.toExponential(2); // should error if 'n3' is correctly type 'string' 22 n1.toExponential(2); // should not error if 'n1' is correctly number. 24 n2.toExponential(2); // should not error if 'n2' is correctly number. 26 n3.toExponential(2); // should error if 'n3' is correctly type 'string'
|
D | lambdaParamTypes.errors.txt | 4 tests/cases/compiler/lambdaParamTypes.ts(20,36): error TS2339: Property 'toExponential' does not ex… 6 tests/cases/compiler/lambdaParamTypes.ts(22,36): error TS2339: Property 'toExponential' does not ex… 21 thing.doSomething((x, y) => x.id.toExponential(0)); // x.id should be string, so should be OK 23 thing.doSomething((x, y) => y.id.toExponential(0)); // x.id should be string, so should be OK 35 …thing.doSomething((x, y) => x.name.toExponential(0)); // x.name should be string, no toExponential… 37 !!! error TS2339: Property 'toExponential' does not exist on type 'string'. 41 thing.doSomething((x, y) => y.name.toExponential(0)); 43 !!! error TS2339: Property 'toExponential' does not exist on type 'string'.
|
D | pathMappingBasedModuleResolution6_classic.types | 9 use(x.toExponential()); 10 >use(x.toExponential()) : any 12 >x.toExponential() : string 13 >x.toExponential : (fractionDigits?: number) => string 15 >toExponential : (fractionDigits?: number) => string
|
D | exportEqualsDefaultProperty.symbols | 20 foo.toExponential(2); 21 >foo.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --)) 23 >toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --))
|
/third_party/jerryscript/tests/jerry/ |
D | number-prototype-to-exponential.js | 17 assert((123.56).toExponential() === "1.2356e+2"); 18 assert((123.56).toExponential(0) === "1e+2"); 19 assert((123.56).toExponential(1) === "1.2e+2"); 20 assert((123.56).toExponential(5) === "1.23560e+2"); 21 assert((-1.23).toExponential(1) === "-1.2e+0"); 22 assert((0.00023).toExponential(0) === "2e-4"); 23 assert((0.356).toExponential(1) === "3.6e-1"); 24 assert((0.0000356).toExponential(2) === "3.56e-5"); 25 assert((0.000030056).toExponential(2) === "3.01e-5"); 26 assert(Infinity.toExponential(0) === "Infinity"); [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | literalsInComputedProperties1.ts | 9 x[1].toExponential(); 10 x[2].toExponential(); 11 x[3].toExponential(); 12 x[4].toExponential(); 22 y[1].toExponential(); 23 y[2].toExponential(); 24 y[3].toExponential(); 25 y[4].toExponential(); 35 z[1].toExponential(); 36 z[2].toExponential(); [all …]
|