es2018.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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. 'abs',
  7. 'AddRestrictedFunctionProperties',
  8. 'AddWaiter',
  9. 'agent-order',
  10. 'AgentCanSuspend',
  11. 'AgentSignifier',
  12. 'AllocateArrayBuffer',
  13. 'AllocateSharedArrayBuffer',
  14. 'AllocateTypedArray',
  15. 'AllocateTypedArrayBuffer',
  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. 'floor',
  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. 'InitializeHostDefinedRealm',
  116. 'InitializeReferencedBinding',
  117. 'InnerModuleEvaluation',
  118. 'InnerModuleInstantiation',
  119. 'IntegerIndexedElementGet',
  120. 'IntegerIndexedElementSet',
  121. 'IntegerIndexedObjectCreate',
  122. 'InternalizeJSONProperty',
  123. 'IsAnonymousFunctionDefinition',
  124. 'IsCompatiblePropertyDescriptor',
  125. 'IsDetachedBuffer',
  126. 'IsInTailPosition',
  127. 'IsLabelledFunction',
  128. 'IsPropertyReference',
  129. 'IsSharedArrayBuffer',
  130. 'IsStrictReference',
  131. 'IsSuperReference',
  132. 'IsUnresolvableReference',
  133. 'IsWordChar',
  134. 'LeaveCriticalSection',
  135. 'LocalTime',
  136. 'LoopContinues',
  137. 'MakeArgGetter',
  138. 'MakeArgSetter',
  139. 'MakeClassConstructor',
  140. 'MakeConstructor',
  141. 'MakeMethod',
  142. 'MakeSuperPropertyReference',
  143. 'max',
  144. 'memory-order',
  145. 'min',
  146. 'ModuleDeclarationEnvironmentSetup',
  147. 'ModuleExecution',
  148. 'ModuleNamespaceCreate',
  149. 'NewDeclarativeEnvironment',
  150. 'NewFunctionEnvironment',
  151. 'NewGlobalEnvironment',
  152. 'NewModuleEnvironment',
  153. 'NewObjectEnvironment',
  154. 'NewPromiseCapability',
  155. 'NormalCompletion',
  156. 'NumberToRawBytes',
  157. 'ObjectDefineProperties',
  158. 'OrdinaryCallBindThis',
  159. 'OrdinaryCallEvaluateBody',
  160. 'OrdinaryCreateFromConstructor',
  161. 'OrdinaryDelete',
  162. 'OrdinaryGet',
  163. 'OrdinaryIsExtensible',
  164. 'OrdinaryOwnPropertyKeys',
  165. 'OrdinaryPreventExtensions',
  166. 'OrdinarySet',
  167. 'OrdinarySetWithOwnDescriptor',
  168. 'OrdinaryToPrimitive',
  169. 'ParseModule',
  170. 'ParseScript',
  171. 'PerformEval',
  172. 'PerformPromiseAll',
  173. 'PerformPromiseRace',
  174. 'PerformPromiseThen',
  175. 'PrepareForOrdinaryCall',
  176. 'PrepareForTailCall',
  177. 'PromiseReactionJob',
  178. 'PromiseResolveThenableJob',
  179. 'ProxyCreate',
  180. 'PutValue',
  181. 'QuoteJSONString',
  182. 'RawBytesToNumber',
  183. 'reads-bytes-from',
  184. 'reads-from',
  185. 'RegExpAlloc',
  186. 'RegExpBuiltinExec',
  187. 'RegExpCreate',
  188. 'RegExpInitialize',
  189. 'RejectPromise',
  190. 'RemoveWaiter',
  191. 'RemoveWaiters',
  192. 'RepeatMatcher',
  193. 'ResolveBinding',
  194. 'ResolveThisBinding',
  195. 'ReturnIfAbrupt',
  196. 'RunJobs',
  197. 'ScriptEvaluation',
  198. 'ScriptEvaluationJob',
  199. 'SerializeJSONArray',
  200. 'SerializeJSONObject',
  201. 'SerializeJSONProperty',
  202. 'SetDefaultGlobalBindings',
  203. 'SetFunctionLength',
  204. 'SetImmutablePrototype',
  205. 'SetRealmGlobalObject',
  206. 'SetValueInBuffer',
  207. 'SetViewValue',
  208. 'SharedDataBlockEventSet',
  209. 'SortCompare',
  210. 'SplitMatch',
  211. 'StringCreate',
  212. 'StringGetOwnProperty',
  213. 'Suspend',
  214. 'synchronizes-with',
  215. 'ThrowCompletion',
  216. 'TimeZoneString',
  217. 'TopLevelModuleEvaluationJob',
  218. 'TriggerPromiseReactions',
  219. 'TypedArrayCreate',
  220. 'TypedArraySpeciesCreate',
  221. 'UnicodeEscape',
  222. 'UnicodeMatchProperty',
  223. 'UnicodeMatchPropertyValue',
  224. 'UpdateEmpty',
  225. 'UTC',
  226. 'UTF16Decode',
  227. 'UTF16Encoding',
  228. 'ValidateAtomicAccess',
  229. 'ValidateSharedIntegerTypedArray',
  230. 'ValidateTypedArray',
  231. 'ValueOfReadEvent',
  232. 'WakeWaiter',
  233. 'WordCharacters'
  234. ];
  235. require('./tests').es2018(boundES, ops, expectedMissing);
  236. require('./helpers/runManifestTest')(require('tape'), ES, 2018);