es2016.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. 'use strict';
  2. var ES = require('../').ES2016;
  3. var boundES = require('./helpers/createBoundESNamespace')(ES);
  4. var ops = require('../operations/2016');
  5. var expectedMissing = [
  6. 'AddRestrictedFunctionProperties',
  7. 'AllocateArrayBuffer',
  8. 'AllocateTypedArray',
  9. 'AllocateTypedArrayBuffer',
  10. 'BlockDeclarationInstantiation',
  11. 'BoundFunctionCreate',
  12. 'Canonicalize',
  13. 'CharacterRange',
  14. 'CharacterRangeOrUnion',
  15. 'CharacterSetMatcher',
  16. 'CloneArrayBuffer',
  17. 'Completion',
  18. 'Construct',
  19. 'CopyDataBlockBytes',
  20. 'CreateArrayFromList',
  21. 'CreateArrayIterator',
  22. 'CreateBuiltinFunction',
  23. 'CreateByteDataBlock',
  24. 'CreateDynamicFunction',
  25. 'CreateIntrinsics',
  26. 'CreateListIterator',
  27. 'CreateMapIterator',
  28. 'CreateMappedArgumentsObject',
  29. 'CreatePerIterationEnvironment',
  30. 'CreateRealm',
  31. 'CreateResolvingFunctions',
  32. 'CreateSetIterator',
  33. 'CreateStringIterator',
  34. 'CreateUnmappedArgumentsObject',
  35. 'DaylightSavingTA',
  36. 'Decode',
  37. 'DetachArrayBuffer',
  38. 'Encode',
  39. 'EnqueueJob',
  40. 'EnumerateObjectProperties',
  41. 'EscapeRegExpPattern',
  42. 'EvalDeclarationInstantiation',
  43. 'EvaluateCall',
  44. 'EvaluateDirectCall',
  45. 'EvaluateNew',
  46. 'ForBodyEvaluation',
  47. 'ForIn/OfBodyEvaluation',
  48. 'ForIn/OfHeadEvaluation',
  49. 'FulfillPromise',
  50. 'FunctionAllocate',
  51. 'FunctionCreate',
  52. 'FunctionDeclarationInstantiation',
  53. 'FunctionInitialize',
  54. 'GeneratorFunctionCreate',
  55. 'GeneratorResume',
  56. 'GeneratorResumeAbrupt',
  57. 'GeneratorStart',
  58. 'GeneratorValidate',
  59. 'GeneratorYield',
  60. 'GetActiveScriptOrModule',
  61. 'GetFunctionRealm',
  62. 'GetGlobalObject',
  63. 'GetIdentifierReference',
  64. 'GetModuleNamespace',
  65. 'GetNewTarget',
  66. 'GetSuperConstructor',
  67. 'GetTemplateObject',
  68. 'GetThisEnvironment',
  69. 'GetThisValue',
  70. 'GetValue',
  71. 'GetValueFromBuffer',
  72. 'GetViewValue',
  73. 'GlobalDeclarationInstantiation',
  74. 'HostPromiseRejectionTracker',
  75. 'HostReportErrors',
  76. 'HostResolveImportedModule',
  77. 'IfAbruptRejectPromise',
  78. 'ImportedLocalNames',
  79. 'InitializeBoundName',
  80. 'InitializeHostDefinedRealm',
  81. 'InitializeReferencedBinding',
  82. 'IntegerIndexedElementGet',
  83. 'IntegerIndexedElementSet',
  84. 'IntegerIndexedObjectCreate',
  85. 'InternalizeJSONProperty',
  86. 'IsAnonymousFunctionDefinition',
  87. 'IsCompatiblePropertyDescriptor',
  88. 'IsDetachedBuffer',
  89. 'IsInTailPosition',
  90. 'IsLabelledFunction',
  91. 'IsWordChar',
  92. 'LocalTime',
  93. 'LoopContinues',
  94. 'MakeArgGetter',
  95. 'MakeArgSetter',
  96. 'MakeClassConstructor',
  97. 'MakeConstructor',
  98. 'MakeMethod',
  99. 'MakeSuperPropertyReference',
  100. 'max',
  101. 'min',
  102. 'ModuleNamespaceCreate',
  103. 'NewDeclarativeEnvironment',
  104. 'NewFunctionEnvironment',
  105. 'NewGlobalEnvironment',
  106. 'NewModuleEnvironment',
  107. 'NewObjectEnvironment',
  108. 'NewPromiseCapability',
  109. 'NextJob',
  110. 'NormalCompletion',
  111. 'ObjectDefineProperties',
  112. 'OrdinaryCallBindThis',
  113. 'OrdinaryCallEvaluateBody',
  114. 'OrdinaryDelete',
  115. 'OrdinaryGet',
  116. 'OrdinaryIsExtensible',
  117. 'OrdinaryOwnPropertyKeys',
  118. 'OrdinaryPreventExtensions',
  119. 'OrdinarySet',
  120. 'ParseModule',
  121. 'ParseScript',
  122. 'PerformEval',
  123. 'PerformPromiseAll',
  124. 'PerformPromiseRace',
  125. 'PerformPromiseThen',
  126. 'PrepareForOrdinaryCall',
  127. 'PrepareForTailCall',
  128. 'PromiseReactionJob',
  129. 'PromiseResolveThenableJob',
  130. 'ProxyCreate',
  131. 'PutValue', // takes a Reference
  132. 'RegExpAlloc', // creates a regex with uninitialized internal lots
  133. 'RegExpBuiltinExec',
  134. 'RegExpInitialize', // initializes allocated regex's internal slots
  135. 'RejectPromise',
  136. 'RepeatMatcher',
  137. 'ResolveBinding',
  138. 'ResolveThisBinding',
  139. 'ReturnIfAbrupt',
  140. 'ScriptEvaluation',
  141. 'ScriptEvaluationJob',
  142. 'SerializeJSONArray',
  143. 'SerializeJSONObject',
  144. 'SerializeJSONProperty',
  145. 'SetDefaultGlobalBindings',
  146. 'SetRealmGlobalObject',
  147. 'SetValueInBuffer',
  148. 'SetViewValue',
  149. 'SortCompare', // mystery access to `comparefn` arg
  150. 'TopLevelModuleEvaluationJob',
  151. 'ToString Applied to the Number Type',
  152. 'TriggerPromiseReactions',
  153. 'TypedArrayCreate',
  154. 'TypedArraySpeciesCreate',
  155. 'UpdateEmpty', // completion records
  156. 'UTC', // depends on LocalTZA, DaylightSavingTA
  157. 'ValidateTypedArray'
  158. ];
  159. require('./tests').es2016(boundES, ops, expectedMissing);
  160. require('./helpers/runManifestTest')(require('tape'), ES, 2016);