Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

has-override-mistake

inspect-js485MIT1.0.1TypeScript support: included

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

freeze, frozen, writable, set, define, throws, override, mistake, ecmascript, javascript, nonwritable

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.0.1 - 2024-02-29

Commits

  • add types 4599b8c
  • [Fix] don‘t bother checking in IE 6 - 8 8a08d25
  • [Dev Deps] update @ljharb/eslint-config, aud, npmignore, semver, tape 210a194
  • [Tests] fix tests for IE 8 7f383c5
  • [meta] add sideEffects flag 1fc5e33

v1.0.0 - 2023-05-09

Commits