es2018.js 5.4 KB

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