Skip to main content
Glama
mutator.js•533 B
'use strict'; var result = require('./')(); var test = { __proto__: null, foo: {} }; var setter = require('dunder-proto/set'); /** @type {import('./mutator')} */ module.exports = function hasMutator() { if (!result) { return false; } var obj = { __proto__: test }; // @ts-expect-error: TS errors on an inherited property for some reason if (obj.foo !== test.foo) { return false; } if (!setter) { return false; } setter(obj, null); if ('foo' in obj || 'toString' in obj) { return false; } return true; };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guangxiangdebizi/PPT-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server