CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-setprototypeof

A small polyfill for Object.setPrototypeOf with cross-platform compatibility

82

1.02x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "Evaluates how well the solution uses the setprototypeof package to adjust prototypes while preserving original object references across single and bulk operations. Checks that null-prototype handling and in-place mutation rely on the library rather than manual cloning.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports package",
      "description": "Imports setprototypeof and uses the exported function for prototype changes instead of reimplementing fallback logic.",
      "max_score": 15
    },
    {
      "name": "Single rebind",
      "description": "Function that rebinds one object calls setPrototypeOf with the provided prototype and returns the dependency's result to keep identity intact.",
      "max_score": 25
    },
    {
      "name": "Own props intact",
      "description": "Single-object rebinding relies on setPrototypeOf (not cloning) so existing own properties remain after the prototype update.",
      "max_score": 20
    },
    {
      "name": "Null prototype",
      "description": "Prototype removal uses setPrototypeOf with null and surfaces the returned object directly.",
      "max_score": 15
    },
    {
      "name": "Bulk rebind",
      "description": "Batch operation applies setPrototypeOf to every entry, mutating in place and returning the original array instance with the same object references.",
      "max_score": 25
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-setprototypeof

tile.json