has-override-mistake
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

has-override-mistake Version Badge

github actions coverage License Downloads

npm badge

Determine whether the environment has the so-called "override mistake" - [[Set]]ing a property whose ancestor is nonwritable throws.

Example

var hasOverrideMistake = require('has-override-mistake');
var assert = require('assert');

assert.equal(typeof hasOverrideMistake(), 'boolean', 'returns true or false');

Tests

Simply clone the repo, npm install, and run npm test

/has-override-mistake/

    Package Sidebar

    Install

    npm i has-override-mistake

    Weekly Downloads

    18

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    12.2 kB

    Total Files

    11

    Last publish

    Collaborators

    • ljharb