Node-Red configuration
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.

index.js 302B

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. };