You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
414 B
JavaScript

3 months ago
"use strict";
const parsers = require("../parsers");
exports.getPropertyDescriptor = function getPropertyDescriptor(property) {
return {
set(v) {
v = parsers.parsePropertyValue(property, v, {
globalObject: this._global
});
this._setProperty(property, v);
},
get() {
return this.getPropertyValue(property);
},
enumerable: true,
configurable: true
};
};