123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- 'use strict';
- var ES = require('../').ES2020;
- var boundES = require('./helpers/createBoundESNamespace')(ES);
- var ops = require('../operations/2020');
- var expectedMissing = [
- 'AddRestrictedFunctionProperties',
- 'AddWaiter',
- 'agent-order',
- 'AgentCanSuspend',
- 'AgentSignifier',
- 'AllocateArrayBuffer',
- 'AllocateSharedArrayBuffer',
- 'AllocateTypedArray',
- 'AllocateTypedArrayBuffer',
- 'AsyncFromSyncIteratorContinuation',
- 'AsyncFunctionStart',
- 'AsyncGeneratorEnqueue',
- 'AsyncGeneratorReject',
- 'AsyncGeneratorResolve',
- 'AsyncGeneratorResumeNext',
- 'AsyncGeneratorStart',
- 'AsyncGeneratorYield',
- 'AsyncIteratorClose',
- 'AtomicLoad',
- 'AtomicReadModifyWrite',
- 'Await',
- 'BackreferenceMatcher',
- 'BlockDeclarationInstantiation',
- 'BoundFunctionCreate',
- 'Canonicalize',
- 'CaseClauseIsSelected',
- 'CharacterRange',
- 'CharacterRangeOrUnion',
- 'CharacterSetMatcher',
- 'CloneArrayBuffer',
- 'Completion',
- 'ComposeWriteEventBytes',
- 'Construct',
- 'CopyDataBlockBytes',
- 'CreateArrayFromList',
- 'CreateArrayIterator',
- 'CreateAsyncFromSyncIterator',
- 'CreateBuiltinFunction',
- 'CreateByteDataBlock',
- 'CreateDynamicFunction',
- 'CreateForInIterator',
- 'CreateIntrinsics',
- 'CreateListIteratorRecord',
- 'CreateMapIterator',
- 'CreateMappedArgumentsObject',
- 'CreatePerIterationEnvironment',
- 'CreateRealm',
- 'CreateRegExpStringIterator',
- 'CreateResolvingFunctions',
- 'CreateSetIterator',
- 'CreateSharedByteDataBlock',
- 'CreateStringIterator',
- 'CreateUnmappedArgumentsObject',
- 'Decode',
- 'DetachArrayBuffer',
- 'Encode',
- 'EnterCriticalSection',
- 'EnumerateObjectProperties',
- 'EscapeRegExpPattern',
- 'EvalDeclarationInstantiation',
- 'EvaluateCall',
- 'EvaluateNew',
- 'EvaluatePropertyAccessWithExpressionKey',
- 'EvaluatePropertyAccessWithIdentifierKey',
- 'EventSet',
- 'ExecuteModule',
- 'FinishDynamicImport',
- 'ForBodyEvaluation',
- 'ForIn/OfBodyEvaluation',
- 'ForIn/OfHeadEvaluation',
- 'FulfillPromise',
- 'FunctionDeclarationInstantiation',
- 'GeneratorResume',
- 'GeneratorResumeAbrupt',
- 'GeneratorStart',
- 'GeneratorValidate',
- 'GeneratorYield',
- 'GetActiveScriptOrModule',
- 'GetBase',
- 'GetFunctionRealm',
- 'GetGeneratorKind',
- 'GetGlobalObject',
- 'GetIdentifierReference',
- 'GetModifySetValueInBuffer',
- 'GetModuleNamespace',
- 'GetNewTarget',
- 'GetReferencedName',
- 'GetSuperConstructor',
- 'GetTemplateObject',
- 'GetThisEnvironment',
- 'GetThisValue',
- 'GetValue',
- 'GetValueFromBuffer',
- 'GetViewValue',
- 'GetWaiterList',
- 'GlobalDeclarationInstantiation',
- 'happens-before',
- 'HasPrimitiveBase',
- 'host-synchronizes-with',
- 'HostEnqueuePromiseJob',
- 'HostEnsureCanCompileStrings',
- 'HostEventSet',
- 'HostFinalizeImportMeta',
- 'HostGetImportMetaProperties',
- 'HostImportModuleDynamically',
- 'HostPromiseRejectionTracker',
- 'HostResolveImportedModule',
- 'IfAbruptRejectPromise',
- 'ImportedLocalNames',
- 'InitializeBoundName',
- 'InitializeEnvironment',
- 'InitializeHostDefinedRealm',
- 'InitializeReferencedBinding',
- 'InnerModuleEvaluation',
- 'InnerModuleLinking',
- 'IntegerIndexedElementGet',
- 'IntegerIndexedElementSet',
- 'IntegerIndexedObjectCreate',
- 'InternalizeJSONProperty',
- 'IsAnonymousFunctionDefinition',
- 'IsCompatiblePropertyDescriptor',
- 'IsDetachedBuffer',
- 'IsInTailPosition',
- 'IsLabelledFunction',
- 'IsPropertyReference',
- 'IsSharedArrayBuffer',
- 'IsStrictReference',
- 'IsSuperReference',
- 'IsUnresolvableReference',
- 'IsValidIntegerIndex',
- 'IsValidRegularExpressionLiteral',
- 'IsWordChar',
- 'LeaveCriticalSection',
- 'LocalTime',
- 'LocalTZA',
- 'LoopContinues',
- 'MakeArgGetter',
- 'MakeArgSetter',
- 'MakeBasicObject',
- 'MakeClassConstructor',
- 'MakeConstructor',
- 'MakeMethod',
- 'MakeSuperPropertyReference',
- 'max',
- 'memory-order',
- 'min',
- 'ModuleNamespaceCreate',
- 'NewDeclarativeEnvironment',
- 'NewFunctionEnvironment',
- 'NewGlobalEnvironment',
- 'NewModuleEnvironment',
- 'NewObjectEnvironment',
- 'NewPromiseCapability',
- 'NewPromiseReactionJob',
- 'NewPromiseResolveThenableJob',
- 'NormalCompletion',
- 'NotifyWaiter',
- 'NumericToRawBytes',
- 'ObjectDefineProperties',
- 'OrdinaryCallBindThis',
- 'OrdinaryCallEvaluateBody',
- 'OrdinaryDelete',
- 'OrdinaryFunctionCreate',
- 'OrdinaryGet',
- 'OrdinaryIsExtensible',
- 'OrdinaryOwnPropertyKeys',
- 'OrdinaryPreventExtensions',
- 'OrdinarySet',
- 'OrdinarySetWithOwnDescriptor',
- 'OrdinaryToPrimitive',
- 'ParseModule',
- 'ParseScript',
- 'PerformEval',
- 'PerformPromiseAll',
- 'PerformPromiseAllSettled',
- 'PerformPromiseRace',
- 'PerformPromiseThen',
- 'PrepareForOrdinaryCall',
- 'PrepareForTailCall',
- 'ProxyCreate',
- 'PutValue', // takes a Reference
- 'RawBytesToNumeric',
- 'reads-bytes-from',
- 'reads-from',
- 'RegExpAlloc', // creates a regex with uninitialized internal lots
- 'RegExpBuiltinExec',
- 'RegExpInitialize', // initializes allocated regex's internal slots
- 'RejectPromise',
- 'RemoveWaiter',
- 'RemoveWaiters',
- 'RepeatMatcher',
- 'RequireInternalSlot',
- 'ResolveBinding',
- 'ResolveThisBinding',
- 'ReturnIfAbrupt',
- 'ScriptEvaluation',
- 'SerializeJSONArray',
- 'SerializeJSONObject',
- 'SerializeJSONProperty',
- 'SetDefaultGlobalBindings',
- 'SetImmutablePrototype',
- 'SetRealmGlobalObject',
- 'SetValueInBuffer',
- 'SetViewValue',
- 'SharedDataBlockEventSet',
- 'SortCompare', // mystery access to `comparefn` arg
- 'StringToBigInt',
- 'Suspend',
- 'synchronizes-with',
- 'ThrowCompletion',
- 'TimeZoneString',
- 'ToBigInt',
- 'ToBigInt64',
- 'ToBigUint64',
- 'TriggerPromiseReactions',
- 'TypedArrayCreate',
- 'TypedArraySpeciesCreate',
- 'UnicodeMatchProperty',
- 'UnicodeMatchPropertyValue',
- 'UpdateEmpty', // completion records
- 'UTC', // depends on LocalTZA
- 'UTF16Encode',
- 'ValidateAtomicAccess',
- 'ValidateSharedIntegerTypedArray',
- 'ValidateTypedArray',
- 'ValueOfReadEvent',
- 'WordCharacters' // depends on Canonicalize
- ];
- require('./tests').es2020(boundES, ops, expectedMissing);
- require('./helpers/runManifestTest')(require('tape'), ES, 2020);
|