Node-Red configuration
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415
  1. 'use strict';
  2. var test = {
  3. __proto__: null,
  4. foo: {}
  5. };
  6. var $Object = Object;
  7. /** @type {import('.')} */
  8. module.exports = function hasProto() {
  9. // @ts-expect-error: TS errors on an inherited property for some reason
  10. return { __proto__: test }.foo === test.foo
  11. && !(test instanceof $Object);
  12. };