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