es2017.js 4.9 KB

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