Fix AbstractModuleSource verifyProperty calls

This commit is contained in:
Chengzhong Wu 2024-07-11 00:08:33 +01:00 committed by Ms2ger
parent 7b154389ce
commit 830c52155d
2 changed files with 7 additions and 3 deletions

View File

@ -9,6 +9,7 @@ info: |
The initial value of %AbstractModuleSource%.prototype is the %AbstractModuleSource% prototype object.
This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
includes: [propertyHelper.js]
features: [source-phase-imports]
flags: [module]
---*/
@ -18,5 +19,5 @@ verifyProperty($262.AbstractModuleSource, 'prototype', {
value: $262.AbstractModuleSource.prototype,
writable: false,
enumerable: false,
configurable: false
configurable: true
});

View File

@ -23,8 +23,11 @@ includes: [propertyHelper.js]
assert.sameValue(typeof $262.AbstractModuleSource, 'function');
verifyProperty($262.AbstractModuleSource.prototype, Symbol.toStringTag, {
enumerable: false,
configurable: false,
writable: false,
configurable: true,
set: undefined,
value: undefined,
}, {
restore: true,
});
// Return undefined if this value does not have a [[ModuleSourceClassName]] internal slot.