es2019.js 5.4 KB

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