es2020.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. 'use strict';
  2. var ES = require('../').ES2020;
  3. var boundES = require('./helpers/createBoundESNamespace')(ES);
  4. var ops = require('../operations/2020');
  5. var expectedMissing = [
  6. 'AddRestrictedFunctionProperties',
  7. 'AddWaiter',
  8. 'agent-order',
  9. 'AgentCanSuspend',
  10. 'AgentSignifier',
  11. 'AllocateArrayBuffer',
  12. 'AllocateSharedArrayBuffer',
  13. 'AllocateTypedArray',
  14. 'AllocateTypedArrayBuffer',
  15. 'AsyncFromSyncIteratorContinuation',
  16. 'AsyncFunctionStart',
  17. 'AsyncGeneratorEnqueue',
  18. 'AsyncGeneratorReject',
  19. 'AsyncGeneratorResolve',
  20. 'AsyncGeneratorResumeNext',
  21. 'AsyncGeneratorStart',
  22. 'AsyncGeneratorYield',
  23. 'AsyncIteratorClose',
  24. 'AtomicLoad',
  25. 'AtomicReadModifyWrite',
  26. 'Await',
  27. 'BackreferenceMatcher',
  28. 'BlockDeclarationInstantiation',
  29. 'BoundFunctionCreate',
  30. 'Canonicalize',
  31. 'CaseClauseIsSelected',
  32. 'CharacterRange',
  33. 'CharacterRangeOrUnion',
  34. 'CharacterSetMatcher',
  35. 'CloneArrayBuffer',
  36. 'Completion',
  37. 'ComposeWriteEventBytes',
  38. 'Construct',
  39. 'CopyDataBlockBytes',
  40. 'CreateArrayFromList',
  41. 'CreateArrayIterator',
  42. 'CreateAsyncFromSyncIterator',
  43. 'CreateBuiltinFunction',
  44. 'CreateByteDataBlock',
  45. 'CreateDynamicFunction',
  46. 'CreateForInIterator',
  47. 'CreateIntrinsics',
  48. 'CreateListIteratorRecord',
  49. 'CreateMapIterator',
  50. 'CreateMappedArgumentsObject',
  51. 'CreatePerIterationEnvironment',
  52. 'CreateRealm',
  53. 'CreateRegExpStringIterator',
  54. 'CreateResolvingFunctions',
  55. 'CreateSetIterator',
  56. 'CreateSharedByteDataBlock',
  57. 'CreateStringIterator',
  58. 'CreateUnmappedArgumentsObject',
  59. 'Decode',
  60. 'DetachArrayBuffer',
  61. 'Encode',
  62. 'EnterCriticalSection',
  63. 'EnumerateObjectProperties',
  64. 'EscapeRegExpPattern',
  65. 'EvalDeclarationInstantiation',
  66. 'EvaluateCall',
  67. 'EvaluateNew',
  68. 'EvaluatePropertyAccessWithExpressionKey',
  69. 'EvaluatePropertyAccessWithIdentifierKey',
  70. 'EventSet',
  71. 'ExecuteModule',
  72. 'FinishDynamicImport',
  73. 'ForBodyEvaluation',
  74. 'ForIn/OfBodyEvaluation',
  75. 'ForIn/OfHeadEvaluation',
  76. 'FulfillPromise',
  77. 'FunctionDeclarationInstantiation',
  78. 'GeneratorResume',
  79. 'GeneratorResumeAbrupt',
  80. 'GeneratorStart',
  81. 'GeneratorValidate',
  82. 'GeneratorYield',
  83. 'GetActiveScriptOrModule',
  84. 'GetBase',
  85. 'GetFunctionRealm',
  86. 'GetGeneratorKind',
  87. 'GetGlobalObject',
  88. 'GetIdentifierReference',
  89. 'GetModifySetValueInBuffer',
  90. 'GetModuleNamespace',
  91. 'GetNewTarget',
  92. 'GetReferencedName',
  93. 'GetSuperConstructor',
  94. 'GetTemplateObject',
  95. 'GetThisEnvironment',
  96. 'GetThisValue',
  97. 'GetValue',
  98. 'GetValueFromBuffer',
  99. 'GetViewValue',
  100. 'GetWaiterList',
  101. 'GlobalDeclarationInstantiation',
  102. 'happens-before',
  103. 'HasPrimitiveBase',
  104. 'host-synchronizes-with',
  105. 'HostEnqueuePromiseJob',
  106. 'HostEnsureCanCompileStrings',
  107. 'HostEventSet',
  108. 'HostFinalizeImportMeta',
  109. 'HostGetImportMetaProperties',
  110. 'HostImportModuleDynamically',
  111. 'HostPromiseRejectionTracker',
  112. 'HostResolveImportedModule',
  113. 'IfAbruptRejectPromise',
  114. 'ImportedLocalNames',
  115. 'InitializeBoundName',
  116. 'InitializeEnvironment',
  117. 'InitializeHostDefinedRealm',
  118. 'InitializeReferencedBinding',
  119. 'InnerModuleEvaluation',
  120. 'InnerModuleLinking',
  121. 'IntegerIndexedElementGet',
  122. 'IntegerIndexedElementSet',
  123. 'IntegerIndexedObjectCreate',
  124. 'InternalizeJSONProperty',
  125. 'IsAnonymousFunctionDefinition',
  126. 'IsCompatiblePropertyDescriptor',
  127. 'IsDetachedBuffer',
  128. 'IsInTailPosition',
  129. 'IsLabelledFunction',
  130. 'IsPropertyReference',
  131. 'IsSharedArrayBuffer',
  132. 'IsStrictReference',
  133. 'IsSuperReference',
  134. 'IsUnresolvableReference',
  135. 'IsValidIntegerIndex',
  136. 'IsValidRegularExpressionLiteral',
  137. 'IsWordChar',
  138. 'LeaveCriticalSection',
  139. 'LocalTime',
  140. 'LocalTZA',
  141. 'LoopContinues',
  142. 'MakeArgGetter',
  143. 'MakeArgSetter',
  144. 'MakeBasicObject',
  145. 'MakeClassConstructor',
  146. 'MakeConstructor',
  147. 'MakeMethod',
  148. 'MakeSuperPropertyReference',
  149. 'max',
  150. 'memory-order',
  151. 'min',
  152. 'ModuleNamespaceCreate',
  153. 'NewDeclarativeEnvironment',
  154. 'NewFunctionEnvironment',
  155. 'NewGlobalEnvironment',
  156. 'NewModuleEnvironment',
  157. 'NewObjectEnvironment',
  158. 'NewPromiseCapability',
  159. 'NewPromiseReactionJob',
  160. 'NewPromiseResolveThenableJob',
  161. 'NormalCompletion',
  162. 'NotifyWaiter',
  163. 'NumericToRawBytes',
  164. 'ObjectDefineProperties',
  165. 'OrdinaryCallBindThis',
  166. 'OrdinaryCallEvaluateBody',
  167. 'OrdinaryDelete',
  168. 'OrdinaryFunctionCreate',
  169. 'OrdinaryGet',
  170. 'OrdinaryIsExtensible',
  171. 'OrdinaryOwnPropertyKeys',
  172. 'OrdinaryPreventExtensions',
  173. 'OrdinarySet',
  174. 'OrdinarySetWithOwnDescriptor',
  175. 'OrdinaryToPrimitive',
  176. 'ParseModule',
  177. 'ParseScript',
  178. 'PerformEval',
  179. 'PerformPromiseAll',
  180. 'PerformPromiseAllSettled',
  181. 'PerformPromiseRace',
  182. 'PerformPromiseThen',
  183. 'PrepareForOrdinaryCall',
  184. 'PrepareForTailCall',
  185. 'ProxyCreate',
  186. 'PutValue', // takes a Reference
  187. 'RawBytesToNumeric',
  188. 'reads-bytes-from',
  189. 'reads-from',
  190. 'RegExpAlloc', // creates a regex with uninitialized internal lots
  191. 'RegExpBuiltinExec',
  192. 'RegExpInitialize', // initializes allocated regex's internal slots
  193. 'RejectPromise',
  194. 'RemoveWaiter',
  195. 'RemoveWaiters',
  196. 'RepeatMatcher',
  197. 'RequireInternalSlot',
  198. 'ResolveBinding',
  199. 'ResolveThisBinding',
  200. 'ReturnIfAbrupt',
  201. 'ScriptEvaluation',
  202. 'SerializeJSONArray',
  203. 'SerializeJSONObject',
  204. 'SerializeJSONProperty',
  205. 'SetDefaultGlobalBindings',
  206. 'SetImmutablePrototype',
  207. 'SetRealmGlobalObject',
  208. 'SetValueInBuffer',
  209. 'SetViewValue',
  210. 'SharedDataBlockEventSet',
  211. 'SortCompare', // mystery access to `comparefn` arg
  212. 'StringToBigInt',
  213. 'Suspend',
  214. 'synchronizes-with',
  215. 'ThrowCompletion',
  216. 'TimeZoneString',
  217. 'ToBigInt',
  218. 'ToBigInt64',
  219. 'ToBigUint64',
  220. 'TriggerPromiseReactions',
  221. 'TypedArrayCreate',
  222. 'TypedArraySpeciesCreate',
  223. 'UnicodeMatchProperty',
  224. 'UnicodeMatchPropertyValue',
  225. 'UpdateEmpty', // completion records
  226. 'UTC', // depends on LocalTZA
  227. 'UTF16Encode',
  228. 'ValidateAtomicAccess',
  229. 'ValidateSharedIntegerTypedArray',
  230. 'ValidateTypedArray',
  231. 'ValueOfReadEvent',
  232. 'WordCharacters' // depends on Canonicalize
  233. ];
  234. require('./tests').es2020(boundES, ops, expectedMissing);
  235. require('./helpers/runManifestTest')(require('tape'), ES, 2020);