es2017.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. 'use strict';
  2. var ES = require('../').ES2017;
  3. var boundES = require('./helpers/createBoundESNamespace')(ES);
  4. var ops = require('../operations/2017');
  5. var expectedMissing = [
  6. 'abs',
  7. 'AddWaiter',
  8. 'agent-order',
  9. 'AgentCanSuspend',
  10. 'AgentSignifier',
  11. 'AllocateArrayBuffer',
  12. 'AllocateSharedArrayBuffer',
  13. 'AllocateTypedArray',
  14. 'AllocateTypedArrayBuffer',
  15. 'AsyncFunctionAwait',
  16. 'AsyncFunctionCreate',
  17. 'AsyncFunctionStart',
  18. 'AtomicLoad',
  19. 'AtomicReadModifyWrite',
  20. 'BlockDeclarationInstantiation',
  21. 'BoundFunctionCreate',
  22. 'Canonicalize',
  23. 'CharacterRange',
  24. 'CharacterRangeOrUnion',
  25. 'CharacterSetMatcher',
  26. 'CloneArrayBuffer',
  27. 'Completion',
  28. 'ComposeWriteEventBytes',
  29. 'Construct',
  30. 'CopyDataBlockBytes',
  31. 'CreateArrayFromList',
  32. 'CreateArrayIterator',
  33. 'CreateBuiltinFunction',
  34. 'CreateByteDataBlock',
  35. 'CreateDynamicFunction',
  36. 'CreateIntrinsics',
  37. 'CreateListIterator',
  38. 'CreateMapIterator',
  39. 'CreateMappedArgumentsObject',
  40. 'CreatePerIterationEnvironment',
  41. 'CreateRealm',
  42. 'CreateResolvingFunctions',
  43. 'CreateSetIterator',
  44. 'CreateSharedByteDataBlock',
  45. 'CreateStringIterator',
  46. 'CreateUnmappedArgumentsObject',
  47. 'Decode',
  48. 'DetachArrayBuffer',
  49. 'Encode',
  50. 'EnqueueJob',
  51. 'EnterCriticalSection',
  52. 'EnumerateObjectProperties',
  53. 'EscapeRegExpPattern',
  54. 'EvalDeclarationInstantiation',
  55. 'EvaluateCall',
  56. 'EvaluateDirectCall',
  57. 'EvaluateNew',
  58. 'EventSet',
  59. 'floor',
  60. 'ForBodyEvaluation',
  61. 'ForIn/OfBodyEvaluation',
  62. 'ForIn/OfHeadEvaluation',
  63. 'FulfillPromise',
  64. 'FunctionAllocate',
  65. 'FunctionCreate',
  66. 'FunctionDeclarationInstantiation',
  67. 'FunctionInitialize',
  68. 'GeneratorFunctionCreate',
  69. 'GeneratorResume',
  70. 'GeneratorResumeAbrupt',
  71. 'GeneratorStart',
  72. 'GeneratorValidate',
  73. 'GeneratorYield',
  74. 'GetActiveScriptOrModule',
  75. 'GetBase',
  76. 'GetFunctionRealm',
  77. 'GetGlobalObject',
  78. 'GetIdentifierReference',
  79. 'GetModifySetValueInBuffer',
  80. 'GetModuleNamespace',
  81. 'GetNewTarget',
  82. 'GetReferencedName',
  83. 'GetSuperConstructor',
  84. 'GetTemplateObject',
  85. 'GetThisEnvironment',
  86. 'GetThisValue',
  87. 'GetValue',
  88. 'GetValueFromBuffer',
  89. 'GetViewValue',
  90. 'GetWaiterList',
  91. 'GlobalDeclarationInstantiation',
  92. 'happens-before',
  93. 'HasPrimitiveBase',
  94. 'host-synchronizes-with',
  95. 'HostEnsureCanCompileStrings',
  96. 'HostEventSet',
  97. 'HostPromiseRejectionTracker',
  98. 'HostReportErrors',
  99. 'HostResolveImportedModule',
  100. 'IfAbruptRejectPromise',
  101. 'ImportedLocalNames',
  102. 'InitializeBoundName',
  103. 'InitializeHostDefinedRealm',
  104. 'InitializeReferencedBinding',
  105. 'IntegerIndexedElementGet',
  106. 'IntegerIndexedElementSet',
  107. 'IntegerIndexedObjectCreate',
  108. 'InternalizeJSONProperty',
  109. 'IsAnonymousFunctionDefinition',
  110. 'IsCompatiblePropertyDescriptor',
  111. 'IsDetachedBuffer',
  112. 'IsInTailPosition',
  113. 'IsLabelledFunction',
  114. 'IsPropertyReference',
  115. 'IsSharedArrayBuffer',
  116. 'IsStrictReference',
  117. 'IsSuperReference',
  118. 'IsUnresolvableReference',
  119. 'IsWordChar',
  120. 'LeaveCriticalSection',
  121. 'LocalTime',
  122. 'LoopContinues',
  123. 'MakeArgGetter',
  124. 'MakeArgSetter',
  125. 'MakeClassConstructor',
  126. 'MakeConstructor',
  127. 'MakeMethod',
  128. 'MakeSuperPropertyReference',
  129. 'max',
  130. 'memory-order',
  131. 'min',
  132. 'ModuleNamespaceCreate',
  133. 'NewDeclarativeEnvironment',
  134. 'NewFunctionEnvironment',
  135. 'NewGlobalEnvironment',
  136. 'NewModuleEnvironment',
  137. 'NewObjectEnvironment',
  138. 'NewPromiseCapability',
  139. 'NormalCompletion',
  140. 'NumberToRawBytes',
  141. 'ObjectDefineProperties',
  142. 'OrdinaryCallBindThis',
  143. 'OrdinaryCallEvaluateBody',
  144. 'OrdinaryCreateFromConstructor',
  145. 'OrdinaryDelete',
  146. 'OrdinaryGet',
  147. 'OrdinaryIsExtensible',
  148. 'OrdinaryOwnPropertyKeys',
  149. 'OrdinaryPreventExtensions',
  150. 'OrdinarySet',
  151. 'OrdinaryToPrimitive',
  152. 'ParseModule',
  153. 'ParseScript',
  154. 'PerformEval',
  155. 'PerformPromiseAll',
  156. 'PerformPromiseRace',
  157. 'PerformPromiseThen',
  158. 'PrepareForOrdinaryCall',
  159. 'PrepareForTailCall',
  160. 'PromiseReactionJob',
  161. 'PromiseResolveThenableJob',
  162. 'ProxyCreate',
  163. 'PutValue',
  164. 'QuoteJSONString',
  165. 'RawBytesToNumber',
  166. 'reads-bytes-from',
  167. 'reads-from',
  168. 'RegExpAlloc',
  169. 'RegExpBuiltinExec',
  170. 'RegExpCreate',
  171. 'RegExpInitialize',
  172. 'RejectPromise',
  173. 'RemoveWaiter',
  174. 'RemoveWaiters',
  175. 'RepeatMatcher',
  176. 'ResolveBinding',
  177. 'ResolveThisBinding',
  178. 'ReturnIfAbrupt',
  179. 'RunJobs',
  180. 'ScriptEvaluation',
  181. 'ScriptEvaluationJob',
  182. 'SerializeJSONArray',
  183. 'SerializeJSONObject',
  184. 'SerializeJSONProperty',
  185. 'SetDefaultGlobalBindings',
  186. 'SetImmutablePrototype',
  187. 'SetRealmGlobalObject',
  188. 'SetValueInBuffer',
  189. 'SetViewValue',
  190. 'SharedDataBlockEventSet',
  191. 'SortCompare',
  192. 'SplitMatch',
  193. 'StringCreate',
  194. 'StringGetOwnProperty',
  195. 'Suspend',
  196. 'TopLevelModuleEvaluationJob',
  197. 'ToString Applied to the Number Type',
  198. 'TriggerPromiseReactions',
  199. 'TypedArrayCreate',
  200. 'TypedArraySpeciesCreate',
  201. 'UpdateEmpty',
  202. 'UTC',
  203. 'UTF16Decode',
  204. 'UTF16Encoding',
  205. 'ValidateAtomicAccess',
  206. 'ValidateSharedIntegerTypedArray',
  207. 'ValidateTypedArray',
  208. 'ValueOfReadEvent',
  209. 'WakeWaiter',
  210. 'WordCharacters',
  211. 'AddRestrictedFunctionProperties',
  212. 'synchronizes-with'
  213. ];
  214. require('./tests').es2017(boundES, ops, expectedMissing);
  215. require('./helpers/runManifestTest')(require('tape'), ES, 2017);