es2015.js 3.3 KB

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