租房小程序前端代码
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.

15 lines
298 B

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