web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
518 B

  1. 'use strict';
  2. var isPropertyDescriptor = require('../helpers/isPropertyDescriptor');
  3. var Type = require('./Type');
  4. var IsDataDescriptor = require('./IsDataDescriptor');
  5. var IsAccessorDescriptor = require('./IsAccessorDescriptor');
  6. // https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type
  7. module.exports = function IsPropertyDescriptor(Desc) {
  8. return isPropertyDescriptor({
  9. IsDataDescriptor: IsDataDescriptor,
  10. IsAccessorDescriptor: IsAccessorDescriptor,
  11. Type: Type
  12. }, Desc);
  13. };