实证兼容性

规范一致性

浏览本站所运行的确切 SharpTS 修订版的真实结果,从语言大类深入到各个内置对象和功能。

Test262 · 解释器

93.5%9823 / 10505 项有效测试ECMAScript 运行时语义

Test262 · AOT 编译器

93.9%9861 / 10505 项有效测试ECMAScript 运行时语义

TypeScript · 诊断

36.0%192 / 534 项有效测试与 tsc 的诊断一致性

ECMAScript 运行时

Test262 一致性

由 SharpTS 两种后端执行的 TC39 测试,用于验证 JavaScript 语言与内置对象的运行时行为。

  • 通过
  • 失败
  • 解析错误
  • 类型检查错误
  • 运行时错误
  • 超时
  • 测试框架错误
  • 已跳过
功能解释模式编译模式
内置对象
93.6%9684 / 10341
871 已跳过
93.9%+0.39714 / 10341
871 已跳过
Array
89.8%2767 / 3081
0 已跳过
90.2%+0.42778 / 3081
0 已跳过
at
84.6%11 / 13
0 已跳过
84.6%0.011 / 13
0 已跳过
concat
75.4%52 / 69
0 已跳过
76.8%+1.453 / 69
0 已跳过
copyWithin
97.4%38 / 39
0 已跳过
97.4%0.038 / 39
0 已跳过
entries
75.0%9 / 12
0 已跳过
75.0%0.09 / 12
0 已跳过
every
97.7%213 / 218
0 已跳过
98.2%+0.5214 / 218
0 已跳过
fill
90.9%20 / 22
0 已跳过
90.9%0.020 / 22
0 已跳过
filter
93.8%227 / 242
0 已跳过
93.8%0.0227 / 242
0 已跳过
find
82.6%19 / 23
0 已跳过
82.6%0.019 / 23
0 已跳过
findIndex
82.6%19 / 23
0 已跳过
82.6%0.019 / 23
0 已跳过
findLast
79.2%19 / 24
0 已跳过
79.2%0.019 / 24
0 已跳过
findLastIndex
79.2%19 / 24
0 已跳过
79.2%0.019 / 24
0 已跳过
flat
68.4%13 / 19
0 已跳过
68.4%0.013 / 19
0 已跳过
flatMap
58.3%14 / 24
0 已跳过
58.3%0.014 / 24
0 已跳过
forEach
97.4%185 / 190
0 已跳过
97.9%+0.5186 / 190
0 已跳过
from
83.0%39 / 47
0 已跳过
83.0%0.039 / 47
0 已跳过
fromAsync
0.0%0 / 95
0 已跳过
0.0%0.00 / 95
0 已跳过
常规
90.0%45 / 50
0 已跳过
90.0%0.045 / 50
0 已跳过
includes
83.3%25 / 30
0 已跳过
83.3%0.025 / 30
0 已跳过
indexOf
97.0%195 / 201
0 已跳过
97.5%+0.5196 / 201
0 已跳过
isArray
100.0%29 / 29
0 已跳过
100.0%0.029 / 29
0 已跳过
join
82.6%19 / 23
0 已跳过
82.6%0.019 / 23
0 已跳过
keys
75.0%9 / 12
0 已跳过
75.0%0.09 / 12
0 已跳过
lastIndexOf
97.5%193 / 198
0 已跳过
98.0%+0.5194 / 198
0 已跳过
length
93.3%28 / 30
0 已跳过
93.3%0.028 / 30
0 已跳过
map
92.6%200 / 216
0 已跳过
93.1%+0.5201 / 216
0 已跳过
of
50.0%8 / 16
0 已跳过
50.0%0.08 / 16
0 已跳过
pop
100.0%23 / 23
0 已跳过
100.0%0.023 / 23
0 已跳过
prototype
57.1%4 / 7
0 已跳过
57.1%0.04 / 7
0 已跳过
push
100.0%24 / 24
0 已跳过
100.0%0.024 / 24
0 已跳过
reduce
97.7%254 / 260
0 已跳过
98.5%+0.8256 / 260
0 已跳过
reduceRight
97.3%253 / 260
0 已跳过
98.1%+0.8255 / 260
0 已跳过
reverse
94.4%17 / 18
0 已跳过
94.4%0.017 / 18
0 已跳过
shift
100.0%20 / 20
0 已跳过
100.0%0.020 / 20
0 已跳过
slice
78.9%56 / 71
0 已跳过
78.9%0.056 / 71
0 已跳过
some
97.7%214 / 219
0 已跳过
98.2%+0.5215 / 219
0 已跳过
sort
92.6%50 / 54
0 已跳过
92.6%0.050 / 54
0 已跳过
splice
81.5%66 / 81
0 已跳过
81.5%0.066 / 81
0 已跳过
Symbol.iterator
100.0%1 / 1
0 已跳过
100.0%0.01 / 1
0 已跳过
Symbol.species
0.0%0 / 4
0 已跳过
0.0%0.00 / 4
0 已跳过
Symbol.unscopables
0.0%0 / 4
0 已跳过
0.0%0.00 / 4
0 已跳过
toLocaleString
75.0%9 / 12
0 已跳过
75.0%0.09 / 12
0 已跳过
toReversed
100.0%17 / 17
0 已跳过
100.0%0.017 / 17
0 已跳过
toSorted
100.0%21 / 21
0 已跳过
100.0%0.021 / 21
0 已跳过
toSpliced
100.0%30 / 30
0 已跳过
100.0%0.030 / 30
0 已跳过
toString
72.7%8 / 11
0 已跳过
72.7%0.08 / 11
0 已跳过
unshift
100.0%22 / 22
0 已跳过
100.0%0.022 / 22
0 已跳过
values
75.0%9 / 12
0 已跳过
75.0%0.09 / 12
0 已跳过
with
100.0%21 / 21
0 已跳过
100.0%0.021 / 21
0 已跳过
Boolean
98.0%50 / 51
0 已跳过
98.0%0.050 / 51
0 已跳过
constructor
100.0%1 / 1
0 已跳过
100.0%0.01 / 1
0 已跳过
常规
96.0%24 / 25
0 已跳过
96.0%0.024 / 25
0 已跳过
prototype
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
toString
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
valueOf
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
Error
94.8%55 / 58
0 已跳过
94.8%0.055 / 58
0 已跳过
constructor
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
常规
93.8%15 / 16
0 已跳过
93.8%0.015 / 16
0 已跳过
isError
83.3%10 / 12
0 已跳过
83.3%0.010 / 12
0 已跳过
message
100.0%1 / 1
0 已跳过
100.0%0.01 / 1
0 已跳过
name
100.0%1 / 1
0 已跳过
100.0%0.01 / 1
0 已跳过
prototype
100.0%9 / 9
0 已跳过
100.0%0.09 / 9
0 已跳过
toString
100.0%17 / 17
0 已跳过
100.0%0.017 / 17
0 已跳过
JSON
89.7%148 / 165
0 已跳过
89.7%0.0148 / 165
0 已跳过
常规
100.0%6 / 6
0 已跳过
100.0%0.06 / 6
0 已跳过
isRawJSON
100.0%6 / 6
0 已跳过
100.0%0.06 / 6
0 已跳过
parse
89.6%69 / 77
0 已跳过
89.6%0.069 / 77
0 已跳过
rawJSON
90.0%9 / 10
0 已跳过
90.0%0.09 / 10
0 已跳过
stringify
87.9%58 / 66
0 已跳过
87.9%0.058 / 66
0 已跳过
Math
100.0%327 / 327
0 已跳过
100.0%0.0327 / 327
0 已跳过
abs
100.0%8 / 8
0 已跳过
100.0%0.08 / 8
0 已跳过
acos
100.0%8 / 8
0 已跳过
100.0%0.08 / 8
0 已跳过
acosh
100.0%7 / 7
0 已跳过
100.0%0.07 / 7
0 已跳过
asin
100.0%9 / 9
0 已跳过
100.0%0.09 / 9
0 已跳过
asinh
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
atan
100.0%7 / 7
0 已跳过
100.0%0.07 / 7
0 已跳过
atan2
100.0%11 / 11
0 已跳过
100.0%0.011 / 11
0 已跳过
atanh
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
cbrt
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
ceil
100.0%11 / 11
0 已跳过
100.0%0.011 / 11
0 已跳过
clz32
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
cos
100.0%9 / 9
0 已跳过
100.0%0.09 / 9
0 已跳过
cosh
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
E
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
exp
100.0%9 / 9
0 已跳过
100.0%0.09 / 9
0 已跳过
expm1
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
f16round
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
floor
100.0%11 / 11
0 已跳过
100.0%0.011 / 11
0 已跳过
fround
100.0%9 / 9
0 已跳过
100.0%0.09 / 9
0 已跳过
常规
100.0%3 / 3
0 已跳过
100.0%0.03 / 3
0 已跳过
hypot
100.0%12 / 12
0 已跳过
100.0%0.012 / 12
0 已跳过
imul
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
LN10
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
LN2
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
log
100.0%9 / 9
0 已跳过
100.0%0.09 / 9
0 已跳过
log10
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
LOG10E
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
log1p
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
log2
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
LOG2E
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
max
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
min
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
PI
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
pow
100.0%28 / 28
0 已跳过
100.0%0.028 / 28
0 已跳过
random
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
round
100.0%11 / 11
0 已跳过
100.0%0.011 / 11
0 已跳过
sign
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
sin
100.0%8 / 8
0 已跳过
100.0%0.08 / 8
0 已跳过
sinh
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
sqrt
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
SQRT1_2
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
SQRT2
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
sumPrecise
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
tan
100.0%9 / 9
0 已跳过
100.0%0.09 / 9
0 已跳过
tanh
100.0%5 / 5
0 已跳过
100.0%0.05 / 5
0 已跳过
trunc
100.0%12 / 12
0 已跳过
100.0%0.012 / 12
0 已跳过
Number
99.7%339 / 340
0 已跳过
99.7%0.0339 / 340
0 已跳过
常规
99.2%119 / 120
0 已跳过
99.2%0.0119 / 120
0 已跳过
isFinite
100.0%8 / 8
0 已跳过
100.0%0.08 / 8
0 已跳过
isInteger
100.0%9 / 9
0 已跳过
100.0%0.09 / 9
0 已跳过
isNaN
100.0%7 / 7
0 已跳过
100.0%0.07 / 7
0 已跳过
isSafeInteger
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
MAX_VALUE
100.0%4 / 4
0 已跳过
100.0%0.04 / 4
0 已跳过
MIN_VALUE
100.0%4 / 4
0 已跳过
100.0%0.04 / 4
0 已跳过
NEGATIVE_INFINITY
100.0%4 / 4
0 已跳过
100.0%0.04 / 4
0 已跳过
parseFloat
100.0%1 / 1
0 已跳过
100.0%0.01 / 1
0 已跳过
parseInt
100.0%1 / 1
0 已跳过
100.0%0.01 / 1
0 已跳过
POSITIVE_INFINITY
100.0%4 / 4
0 已跳过
100.0%0.04 / 4
0 已跳过
prototype
100.0%15 / 15
0 已跳过
100.0%0.015 / 15
0 已跳过
toExponential
100.0%15 / 15
0 已跳过
100.0%0.015 / 15
0 已跳过
toFixed
100.0%16 / 16
0 已跳过
100.0%0.016 / 16
0 已跳过
toLocaleString
100.0%4 / 4
0 已跳过
100.0%0.04 / 4
0 已跳过
toPrecision
100.0%17 / 17
0 已跳过
100.0%0.017 / 17
0 已跳过
toString
100.0%90 / 90
0 已跳过
100.0%0.090 / 90
0 已跳过
valueOf
100.0%11 / 11
0 已跳过
100.0%0.011 / 11
0 已跳过
Object
95.6%3257 / 3406
5 已跳过
95.9%+0.23265 / 3406
5 已跳过
__defineGetter__
100.0%11 / 11
0 已跳过
100.0%0.011 / 11
0 已跳过
__defineSetter__
100.0%11 / 11
0 已跳过
100.0%0.011 / 11
0 已跳过
__lookupGetter__
87.5%14 / 16
0 已跳过
100.0%+12.516 / 16
0 已跳过
__lookupSetter__
87.5%14 / 16
0 已跳过
100.0%+12.516 / 16
0 已跳过
__proto__
0.0%0 / 15
0 已跳过
0.0%0.00 / 15
0 已跳过
assign
100.0%38 / 38
0 已跳过
100.0%0.038 / 38
0 已跳过
constructor
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
create
100.0%320 / 320
0 已跳过
100.0%0.0320 / 320
0 已跳过
defineProperties
97.5%616 / 632
0 已跳过
97.5%0.0616 / 632
0 已跳过
defineProperty
96.8%1095 / 1131
0 已跳过
97.0%+0.21097 / 1131
0 已跳过
entries
85.7%18 / 21
0 已跳过
85.7%0.018 / 21
0 已跳过
freeze
86.8%46 / 53
0 已跳过
86.8%0.046 / 53
0 已跳过
fromEntries
44.0%11 / 25
0 已跳过
44.0%0.011 / 25
0 已跳过
常规
96.7%59 / 61
0 已跳过
96.7%0.059 / 61
0 已跳过
getOwnPropertyDescriptor
98.7%306 / 310
0 已跳过
98.7%0.0306 / 310
0 已跳过
getOwnPropertyDescriptors
88.9%16 / 18
0 已跳过
88.9%0.016 / 18
0 已跳过
getOwnPropertyNames
93.3%42 / 45
0 已跳过
95.6%+2.243 / 45
0 已跳过
getOwnPropertySymbols
100.0%12 / 12
0 已跳过
100.0%0.012 / 12
0 已跳过
getPrototypeOf
94.9%37 / 39
0 已跳过
94.9%0.037 / 39
0 已跳过
groupBy
78.6%11 / 14
0 已跳过
85.7%+7.112 / 14
0 已跳过
hasOwn
95.2%59 / 62
0 已跳过
95.2%0.059 / 62
0 已跳过
hasOwnProperty
90.5%57 / 63
0 已跳过
90.5%0.057 / 63
0 已跳过
internals
100.0%6 / 6
0 已跳过
100.0%0.06 / 6
0 已跳过
is
100.0%21 / 21
0 已跳过
100.0%0.021 / 21
0 已跳过
isExtensible
100.0%38 / 38
0 已跳过
100.0%0.038 / 38
0 已跳过
isFrozen
93.2%55 / 59
0 已跳过
93.2%0.055 / 59
0 已跳过
isPrototypeOf
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
isSealed
97.0%32 / 33
0 已跳过
97.0%0.032 / 33
0 已跳过
keys
100.0%59 / 59
0 已跳过
100.0%0.059 / 59
0 已跳过
preventExtensions
100.0%40 / 40
0 已跳过
100.0%0.040 / 40
0 已跳过
propertyIsEnumerable
81.3%13 / 16
0 已跳过
81.3%0.013 / 16
0 已跳过
prototype
100.0%15 / 15
0 已跳过
100.0%0.015 / 15
0 已跳过
seal
95.7%89 / 93
1 已跳过
95.7%0.089 / 93
1 已跳过
setPrototypeOf
100.0%12 / 12
0 已跳过
100.0%0.012 / 12
0 已跳过
toLocaleString
100.0%12 / 12
0 已跳过
100.0%0.012 / 12
0 已跳过
toString
67.6%25 / 37
4 已跳过
67.6%0.025 / 37
4 已跳过
valueOf
90.0%18 / 20
0 已跳过
90.0%0.018 / 20
0 已跳过
values
85.0%17 / 20
0 已跳过
85.0%0.017 / 20
0 已跳过
Promise
87.1%590 / 677
0 已跳过
88.9%+1.8602 / 677
0 已跳过
all
96.9%95 / 98
0 已跳过
96.9%0.095 / 98
0 已跳过
allKeyed
100.0%18 / 18
0 已跳过
100.0%0.018 / 18
0 已跳过
allSettled
94.2%98 / 104
0 已跳过
94.2%0.098 / 104
0 已跳过
allSettledKeyed
100.0%19 / 19
0 已跳过
100.0%0.019 / 19
0 已跳过
any
94.7%89 / 94
0 已跳过
94.7%0.089 / 94
0 已跳过
catch
92.9%13 / 14
0 已跳过
100.0%+7.114 / 14
0 已跳过
finally
82.8%24 / 29
0 已跳过
82.8%0.024 / 29
0 已跳过
常规
79.3%46 / 58
0 已跳过
82.8%+3.448 / 58
0 已跳过
prototype
83.3%5 / 6
0 已跳过
83.3%0.05 / 6
0 已跳过
race
89.4%84 / 94
0 已跳过
89.4%0.084 / 94
0 已跳过
reject
100.0%15 / 15
0 已跳过
100.0%0.015 / 15
0 已跳过
resolve
100.0%30 / 30
0 已跳过
100.0%0.030 / 30
0 已跳过
Symbol.species
0.0%0 / 5
0 已跳过
0.0%0.00 / 5
0 已跳过
then
66.7%50 / 75
0 已跳过
78.7%+12.059 / 75
0 已跳过
try
16.7%2 / 12
0 已跳过
16.7%0.02 / 12
0 已跳过
withResolvers
33.3%2 / 6
0 已跳过
33.3%0.02 / 6
0 已跳过
RegExp
93.7%956 / 1020
859 已跳过
93.6%-0.1955 / 1020
859 已跳过
CharacterClassEscapes
100.0%12 / 12
0 已跳过
100.0%0.012 / 12
0 已跳过
dotall
25.0%1 / 4
0 已跳过
25.0%0.01 / 4
0 已跳过
dotAll
87.5%7 / 8
0 已跳过
87.5%0.07 / 8
0 已跳过
escape
95.0%19 / 20
0 已跳过
95.0%0.019 / 20
0 已跳过
exec
94.7%72 / 76
3 已跳过
94.7%0.072 / 76
3 已跳过
flags
100.0%11 / 11
5 已跳过
100.0%0.011 / 11
5 已跳过
常规
96.1%467 / 486
2 已跳过
96.1%0.0467 / 486
2 已跳过
global
80.0%8 / 10
0 已跳过
80.0%0.08 / 10
0 已跳过
hasIndices
0.0%0 / 0
8 已跳过
0.0%0.00 / 0
8 已跳过
ignoreCase
80.0%8 / 10
0 已跳过
80.0%0.08 / 10
0 已跳过
lookBehind
0.0%0 / 0
17 已跳过
0.0%0.00 / 0
17 已跳过
match-indices
0.0%0 / 0
14 已跳过
0.0%0.00 / 0
14 已跳过
multiline
80.0%8 / 10
0 已跳过
80.0%0.08 / 10
0 已跳过
named-groups
0.0%0 / 0
36 已跳过
0.0%0.00 / 0
36 已跳过
property-escapes
0.0%0 / 0
613 已跳过
0.0%0.00 / 0
613 已跳过
prototype
100.0%10 / 10
0 已跳过
100.0%0.010 / 10
0 已跳过
regexp-modifiers
82.9%58 / 70
0 已跳过
82.9%0.058 / 70
0 已跳过
source
58.3%7 / 12
0 已跳过
58.3%0.07 / 12
0 已跳过
sticky
87.5%7 / 8
0 已跳过
87.5%0.07 / 8
0 已跳过
Symbol.match
96.2%51 / 53
0 已跳过
96.2%0.051 / 53
0 已跳过
Symbol.matchAll
100.0%26 / 26
0 已跳过
100.0%0.026 / 26
0 已跳过
Symbol.replace
98.4%60 / 61
9 已跳过
98.4%0.060 / 61
9 已跳过
Symbol.search
95.7%22 / 23
0 已跳过
95.7%0.022 / 23
0 已跳过
Symbol.species
0.0%0 / 4
0 已跳过
0.0%0.00 / 4
0 已跳过
Symbol.split
93.2%41 / 44
0 已跳过
90.9%-2.340 / 44
0 已跳过
test
100.0%45 / 45
0 已跳过
100.0%0.045 / 45
0 已跳过
toString
100.0%9 / 9
0 已跳过
100.0%0.09 / 9
0 已跳过
unicode
87.5%7 / 8
0 已跳过
87.5%0.07 / 8
0 已跳过
unicodeSets
0.0%0 / 0
152 已跳过
0.0%0.00 / 0
152 已跳过
String
98.3%1195 / 1216
7 已跳过
98.3%0.01195 / 1216
7 已跳过
at
100.0%11 / 11
0 已跳过
100.0%0.011 / 11
0 已跳过
charAt
100.0%30 / 30
0 已跳过
100.0%0.030 / 30
0 已跳过
charCodeAt
100.0%25 / 25
0 已跳过
100.0%0.025 / 25
0 已跳过
codePointAt
100.0%16 / 16
0 已跳过
100.0%0.016 / 16
0 已跳过
concat
100.0%22 / 22
0 已跳过
100.0%0.022 / 22
0 已跳过
constructor
100.0%2 / 2
0 已跳过
100.0%0.02 / 2
0 已跳过
endsWith
100.0%27 / 27
0 已跳过
100.0%0.027 / 27
0 已跳过
fromCharCode
100.0%17 / 17
0 已跳过
100.0%0.017 / 17
0 已跳过
fromCodePoint
100.0%11 / 11
0 已跳过
100.0%0.011 / 11
0 已跳过
常规
97.8%90 / 92
0 已跳过
97.8%0.090 / 92
0 已跳过
includes
100.0%27 / 27
0 已跳过
100.0%0.027 / 27
0 已跳过
indexOf
100.0%47 / 47
0 已跳过
100.0%0.047 / 47
0 已跳过
isWellFormed
100.0%8 / 8
0 已跳过
100.0%0.08 / 8
0 已跳过
lastIndexOf
100.0%25 / 25
0 已跳过
100.0%0.025 / 25
0 已跳过
localeCompare
100.0%13 / 13
0 已跳过
100.0%0.013 / 13
0 已跳过
match
100.0%48 / 48
3 已跳过
100.0%0.048 / 48
3 已跳过
matchAll
100.0%24 / 24
1 已跳过
100.0%0.024 / 24
1 已跳过
normalize
100.0%14 / 14
0 已跳过
100.0%0.014 / 14
0 已跳过
padEnd
100.0%13 / 13
0 已跳过
100.0%0.013 / 13
0 已跳过
padStart
100.0%13 / 13
0 已跳过
100.0%0.013 / 13
0 已跳过
prototype
100.0%7 / 7
0 已跳过
100.0%0.07 / 7
0 已跳过
raw
100.0%30 / 30
0 已跳过
100.0%0.030 / 30
0 已跳过
repeat
100.0%16 / 16
0 已跳过
100.0%0.016 / 16
0 已跳过
replace
96.3%52 / 54
1 已跳过
96.3%0.052 / 54
1 已跳过
replaceAll
86.7%39 / 45
0 已跳过
86.7%0.039 / 45
0 已跳过
search
100.0%41 / 41
2 已跳过
100.0%0.041 / 41
2 已跳过
slice
100.0%38 / 38
0 已跳过
100.0%0.038 / 38
0 已跳过
split
98.3%118 / 120
0 已跳过
98.3%0.0118 / 120
0 已跳过
startsWith
100.0%21 / 21
0 已跳过
100.0%0.021 / 21
0 已跳过
substring
100.0%46 / 46
0 已跳过
100.0%0.046 / 46
0 已跳过
Symbol.iterator
100.0%6 / 6
0 已跳过
100.0%0.06 / 6
0 已跳过
toLocaleLowerCase
92.9%26 / 28
0 已跳过
92.9%0.026 / 28
0 已跳过
toLocaleUpperCase
96.2%25 / 26
0 已跳过
96.2%0.025 / 26
0 已跳过
toLowerCase
90.0%27 / 30
0 已跳过
90.0%0.027 / 30
0 已跳过
toString
85.7%6 / 7
0 已跳过
85.7%0.06 / 7
0 已跳过
toUpperCase
96.2%25 / 26
0 已跳过
96.2%0.025 / 26
0 已跳过
toWellFormed
100.0%8 / 8
0 已跳过
100.0%0.08 / 8
0 已跳过
trim
100.0%129 / 129
0 已跳过
100.0%0.0129 / 129
0 已跳过
trimEnd
100.0%23 / 23
0 已跳过
100.0%0.023 / 23
0 已跳过
trimStart
100.0%23 / 23
0 已跳过
100.0%0.023 / 23
0 已跳过
valueOf
85.7%6 / 7
0 已跳过
85.7%0.06 / 7
0 已跳过
语言
84.8%139 / 164
8 已跳过
89.6%+4.9147 / 164
8 已跳过
expressions
84.8%139 / 164
8 已跳过
89.6%+4.9147 / 164
8 已跳过
call
81.2%69 / 85
7 已跳过
85.9%+4.773 / 85
7 已跳过
new
88.1%52 / 59
0 已跳过
94.9%+6.856 / 59
0 已跳过
property-accessors
90.0%18 / 20
1 已跳过
90.0%0.018 / 20
1 已跳过

解析器与类型检查器

TypeScript 诊断一致性

Microsoft TypeScript 测试;Pass 表示 SharpTS 诊断按源代码行和 TS 错误代码与 tsc 一致。

  • 通过
  • 失败
  • 解析错误
  • 类型检查错误
  • 测试框架错误
  • 已跳过
功能诊断匹配
类型系统
36.0%192 / 534
0 已跳过
classes
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
conditional
60.0%6 / 10
0 已跳过
常规
60.0%6 / 10
0 已跳过
controlFlow
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
decorators
0.0%0 / 1
0 已跳过
class
0.0%0 / 1
0 已跳过
enums
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
es2016
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
es2017
58.3%7 / 12
0 已跳过
常规
58.3%7 / 12
0 已跳过
es2018
75.0%3 / 4
0 已跳过
常规
75.0%3 / 4
0 已跳过
es2019
15.4%2 / 13
0 已跳过
常规
18.2%2 / 11
0 已跳过
importMeta
0.0%0 / 2
0 已跳过
es2020
53.3%8 / 15
0 已跳过
常规
57.1%4 / 7
0 已跳过
modules
50.0%4 / 8
0 已跳过
es2021
75.0%9 / 12
0 已跳过
常规
100.0%2 / 2
0 已跳过
logicalAssignment
70.0%7 / 10
0 已跳过
es2022
42.9%3 / 7
0 已跳过
arbitraryModuleNamespaceIdentifiers
25.0%1 / 4
0 已跳过
常规
66.7%2 / 3
0 已跳过
es2023
50.0%1 / 2
0 已跳过
常规
50.0%1 / 2
0 已跳过
es6
80.0%76 / 95
0 已跳过
Symbols
80.0%76 / 95
0 已跳过
esnext
50.0%1 / 2
0 已跳过
常规
0.0%0 / 1
0 已跳过
logicalAssignment
100.0%1 / 1
0 已跳过
expressions
0.0%0 / 1
0 已跳过
assignmentOperator
0.0%0 / 1
0 已跳过
functions
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
interfaces
0.0%0 / 1
0 已跳过
interfaceDeclarations
0.0%0 / 1
0 已跳过
intersection
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
jsx
11.8%25 / 211
0 已跳过
常规
11.8%23 / 195
0 已跳过
inline
28.6%2 / 7
0 已跳过
jsxs
0.0%0 / 9
0 已跳过
keyof
16.7%1 / 6
0 已跳过
常规
16.7%1 / 6
0 已跳过
literal
100.0%1 / 1
0 已跳过
常规
100.0%1 / 1
0 已跳过
mapped
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
Symbols
50.0%4 / 8
0 已跳过
常规
50.0%4 / 8
0 已跳过
thisType
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
typeAliases
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
typeParameters
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过
typeRelationships
36.9%45 / 122
0 已跳过
assignmentCompatibility
35.7%25 / 70
0 已跳过
subtypesAndSuperTypes
38.5%20 / 52
0 已跳过
union
0.0%0 / 1
0 已跳过
常规
0.0%0 / 1
0 已跳过

百分比以所有未跳过结果为分母,仅 Pass 计入分子。其他未跳过结果均视为未通过;跳过数量单独显示。

Test262 涵盖了远超一般程序所遇情况的规范边界案例。此处总数未经调整。

生成来源: SharpTS 7c601010 · Test262 测试套件 (d5e73fc8) · TypeScript 测试套件 (050880ce) · JSON