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