blob: a7cc84af516f6eb16c812cfea11131701406614d [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3var ES = require('../').ES2019;
4var boundES = require('./helpers/createBoundESNamespace')(ES);
5
6var ops = require('../operations/2019');
7
8var expectedMissing = [
9 'AddRestrictedFunctionProperties',
10 'AddWaiter',
11 'agent-order',
12 'AgentCanSuspend',
13 'AgentSignifier',
14 'AllocateArrayBuffer',
15 'AllocateSharedArrayBuffer',
16 'AllocateTypedArray',
17 'AllocateTypedArrayBuffer',
18 'AsyncFromSyncIteratorContinuation',
19 'AsyncFunctionCreate',
20 'AsyncFunctionStart',
21 'AsyncGeneratorEnqueue',
22 'AsyncGeneratorFunctionCreate',
23 'AsyncGeneratorReject',
24 'AsyncGeneratorResolve',
25 'AsyncGeneratorResumeNext',
26 'AsyncGeneratorStart',
27 'AsyncGeneratorYield',
28 'AsyncIteratorClose',
29 'AtomicLoad',
30 'AtomicReadModifyWrite',
31 'Await',
32 'BackreferenceMatcher',
33 'BlockDeclarationInstantiation',
34 'BoundFunctionCreate',
35 'Canonicalize',
36 'CaseClauseIsSelected',
37 'CharacterRange',
38 'CharacterRangeOrUnion',
39 'CharacterSetMatcher',
40 'CloneArrayBuffer',
41 'Completion',
42 'ComposeWriteEventBytes',
43 'Construct',
44 'CopyDataBlockBytes',
45 'CreateArrayFromList',
46 'CreateArrayIterator',
47 'CreateAsyncFromSyncIterator',
48 'CreateBuiltinFunction',
49 'CreateByteDataBlock',
50 'CreateDynamicFunction',
51 'CreateIntrinsics',
52 'CreateListIteratorRecord',
53 'CreateMapIterator',
54 'CreateMappedArgumentsObject',
55 'CreatePerIterationEnvironment',
56 'CreateRealm',
57 'CreateResolvingFunctions',
58 'CreateSetIterator',
59 'CreateSharedByteDataBlock',
60 'CreateStringIterator',
61 'CreateUnmappedArgumentsObject',
62 'Decode',
63 'DetachArrayBuffer',
64 'Encode',
65 'EnqueueJob',
66 'EnterCriticalSection',
67 'EnumerateObjectProperties',
68 'EscapeRegExpPattern',
69 'EvalDeclarationInstantiation',
70 'EvaluateCall',
71 'EvaluateNew',
72 'EventSet',
73 'ExecuteModule',
74 'ForBodyEvaluation',
75 'ForIn/OfBodyEvaluation',
76 'ForIn/OfHeadEvaluation',
77 'FulfillPromise',
78 'FunctionAllocate',
79 'FunctionCreate',
80 'FunctionDeclarationInstantiation',
81 'FunctionInitialize',
82 'GeneratorFunctionCreate',
83 'GeneratorResume',
84 'GeneratorResumeAbrupt',
85 'GeneratorStart',
86 'GeneratorValidate',
87 'GeneratorYield',
88 'GetActiveScriptOrModule',
89 'GetBase',
90 'GetFunctionRealm',
91 'GetGeneratorKind',
92 'GetGlobalObject',
93 'GetIdentifierReference',
94 'GetModifySetValueInBuffer',
95 'GetModuleNamespace',
96 'GetNewTarget',
97 'GetReferencedName',
98 'GetSuperConstructor',
99 'GetTemplateObject',
100 'GetThisEnvironment',
101 'GetThisValue',
102 'GetValue',
103 'GetValueFromBuffer',
104 'GetViewValue',
105 'GetWaiterList',
106 'GlobalDeclarationInstantiation',
107 'happens-before',
108 'HasPrimitiveBase',
109 'host-synchronizes-with',
110 'HostEnsureCanCompileStrings',
111 'HostEventSet',
112 'HostPromiseRejectionTracker',
113 'HostReportErrors',
114 'HostResolveImportedModule',
115 'IfAbruptRejectPromise',
116 'ImportedLocalNames',
117 'InitializeBoundName',
118 'InitializeEnvironment',
119 'InitializeHostDefinedRealm',
120 'InitializeReferencedBinding',
121 'InnerModuleEvaluation',
122 'InnerModuleInstantiation',
123 'IntegerIndexedElementGet',
124 'IntegerIndexedElementSet',
125 'IntegerIndexedObjectCreate',
126 'InternalizeJSONProperty',
127 'IsAnonymousFunctionDefinition',
128 'IsCompatiblePropertyDescriptor',
129 'IsDetachedBuffer',
130 'IsInTailPosition',
131 'IsLabelledFunction',
132 'IsPropertyReference',
133 'IsSharedArrayBuffer',
134 'IsStrictReference',
135 'IsSuperReference',
136 'IsUnresolvableReference',
137 'IsWordChar',
138 'LeaveCriticalSection',
139 'LocalTime',
140 'LoopContinues',
141 'MakeArgGetter',
142 'MakeArgSetter',
143 'MakeClassConstructor',
144 'MakeConstructor',
145 'MakeMethod',
146 'MakeSuperPropertyReference',
147 'max',
148 'memory-order',
149 'min',
150 'ModuleNamespaceCreate',
151 'NewDeclarativeEnvironment',
152 'NewFunctionEnvironment',
153 'NewGlobalEnvironment',
154 'NewModuleEnvironment',
155 'NewObjectEnvironment',
156 'NewPromiseCapability',
157 'NormalCompletion',
158 'NotifyWaiter',
159 'NumberToRawBytes',
160 'ObjectDefineProperties',
161 'OrdinaryCallBindThis',
162 'OrdinaryCallEvaluateBody',
163 'OrdinaryDelete',
164 'OrdinaryGet',
165 'OrdinaryIsExtensible',
166 'OrdinaryOwnPropertyKeys',
167 'OrdinaryPreventExtensions',
168 'OrdinarySet',
169 'OrdinarySetWithOwnDescriptor',
170 'OrdinaryToPrimitive',
171 'ParseModule',
172 'ParseScript',
173 'PerformEval',
174 'PerformPromiseAll',
175 'PerformPromiseRace',
176 'PerformPromiseThen',
177 'PrepareForOrdinaryCall',
178 'PrepareForTailCall',
179 'PromiseReactionJob',
180 'PromiseResolveThenableJob',
181 'ProxyCreate',
182 'PutValue', // takes a Reference
183 'RawBytesToNumber',
184 'reads-bytes-from',
185 'reads-from',
186 'RegExpAlloc', // creates a regex with uninitialized internal lots
187 'RegExpBuiltinExec',
188 'RegExpInitialize', // initializes allocated regex's internal slots
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 'SetImmutablePrototype',
204 'SetRealmGlobalObject',
205 'SetValueInBuffer',
206 'SetViewValue',
207 'SharedDataBlockEventSet',
208 'SortCompare', // mystery access to `comparefn` arg
209 'Suspend',
210 'SynchronizeEventSet',
211 'synchronizes-with',
212 'ThrowCompletion',
213 'TimeZoneString',
214 'TopLevelModuleEvaluationJob',
215 'TriggerPromiseReactions',
216 'TypedArrayCreate',
217 'TypedArraySpeciesCreate',
218 'UnicodeMatchProperty',
219 'UnicodeMatchPropertyValue',
220 'UpdateEmpty', // completion records
221 'UTC', // depends on LocalTZA
222 'ValidateAtomicAccess',
223 'ValidateSharedIntegerTypedArray',
224 'ValidateTypedArray',
225 'ValueOfReadEvent',
226 'WordCharacters' // depends on Canonicalize
227];
228
229require('./tests').es2019(boundES, ops, expectedMissing);
230
231require('./helpers/runManifestTest')(require('tape'), ES, 2019);