6.11.98 • Published 10 months ago

@diotoborg/earum-vero v6.11.98

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Symbol.prototype.description Version Badge

github actions coverage License Downloads

npm badge

An ECMAScript spec-compliant Symbol.prototype.description shim. Invoke its "shim" method to shim Symbol.prototype.description if it is unavailable. Note: Symbol#description requires a true ES6 environment, specifically one with native Symbols (eg, node >= v11.15.0)

This package implements the es-shim API interface. It works in an ES6-supported environment and complies with the spec.

Most common usage:

var description = require('@diotoborg/earum-vero');
var assert = require('assert');

assert(description(Symbol('foo')) === 'foo');
assert(description(Symbol()) === undefined);
assert(description(Symbol(undefined)) === undefined);
assert(description(Symbol(null)) === 'null');

if (!('description' in Symbol.prototype)) {
	// note: this should be the empty string, but in many engines,
	// it is impossible to distinguish Symbol() and Symbol('')
	// without globally replacing `Symbol`
	assert(description(Symbol('')) === undefined);

	description.shim();
}

assert(description(Symbol('foo')) === Symbol('foo').description);
assert(description(Symbol()) === Symbol().description);
assert(description(Symbol(undefined)) === Symbol(undefined).description);
assert(description(Symbol(null)) === Symbol(null).description);

assert(Symbol('').description === ''); // this works fine!

Tests

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

colorString.prototype.matchAllvalidatorglacierrestrestfulMappropjoiutilityownelectronfast-deep-clonebabelqueueMicrotaskeffect-tsfindLastIndexoutputrm -rfPushcall-boundposechannelESrequireArray.prototype.containsregular-expressionwgetcolumn.gitignoreserializationCSSvisualgdprtrimLeftconstcore-jsvariabless3currieddependenciesbundlerprivate datastyled-componentsnodejsString.prototype.trimisConcatSpreadablehttpconcatefficienttdddeep-clonezxenderpackagesrangeerroridentifierswebhooksmulti-packageresolvefullfolderequalitydeep-copyworkerponyfillfetchlintArrayiamextrajestagentESnextObject.fromEntriesinputboundPromiseECMAScript 5sometermeventDispatcherpipeObservableglobhasOwnshamlanguageWebSocketsrdsgetterrfc4122xhrspawnES2019Function.prototype.namepostcsstoStringTagdeletees8toSortedbundling256censorcode pointsECMAScript 2020fastcloneignoredefinePropertyArray.prototype.includesviewstructuredClonedebuggerpostcss-plugintscoveragerouterhigher-orderes2018packagestreamconfigurablepositiveutilreducesinatratacitfantasy-landstringifierttywidthsyntaxdebugconcatMapobjectformtraversejsonschemafigletexpressionfull-widthregular expressionsbufferfast-deep-copybyteintrinsicsortelbweaksettakewarningindicatorio-tsamazonavaglobalcolumnscollection.es6typedemrstablejson-schemaoncepurepinoRegExp#flagsTypeScriptfunctionall10najaxfast-clonechailookerrormatches2017Int16ArrayrecursiveajvhasOwnPropertyvalidationa11yaccessorsnsimportexportextendtelephoneschemeglobal objectfilterfpscommandmergermfast-copyforkclassnamecloudfrontObject.entriesasciigraphqlargvlockfilematchAllparentreact-hook-formslotstreamsarttranspilerkeyes-abstractterminalclipnpm9eventEmittercheckWeakSetramdagesturesObservableseslint-plugincall-bindcoerciblemobileclassesAsyncIteratorshrinkwrapspinnersjQueryglobalstypeerrorstringifyserializerfindbinariesStreamsiskinesisflagshebangsimpledbjson-schema-validationcssacornreversedawsimportcircularbyteOffsetclientes-shimsmapreducehas-ownlogginges2015proxyfastprotopluginschemadragtostringtagexecfilespeedObject.assigncommand-lineformsentriesfixed-widthmkdirsreadableparserECMAScript 6domebssettingsistanbulsqsnegative zerosetPrototypeOfrgbimmercallprettylastinECMAScript 7javascriptwhatwgtyped arraytoolkitTypeBoxArray.prototype.flatUint32Arraysuperstructbrowser__proto__Symbol.toStringTagcjkxmlsesrmdircharacterstyleguidedependency managerpropertiesxtermReactiveExtensionssharedYAMLcomputed-typesdayjsObject.getPrototypeOfdateFloat64ArraybinarywaitURLSearchParamsperformantsyntaxerrorbincloudwatchdeepcopyvalueprefixfeedcompilerECMAScript 2023expressECMAScript 2019symlinkscommanderprocessfunctionsdeepclonewafkarma$.extendarraystouchtrimdirectoryuuidcallboundpromiseyamllruserializeremovedeterministicastArray.prototype.findLastIndexasteriskscloudformationincludescachetesterflatpreprocessorhookformstylereact-hooksshimObject.keyssetImmediatenameformattingjsonstarterECMAScript 2022estypesafegroupByArrayBufferjsdombddchilddescriptionfullwidthwindowcloneestreepatheverystringfunction.lengthprotobufhardlinksphoneworkspace:*inferencemkdirinternalclass-validator@@toStringTagprogresstapeswfstylesmodulescolorsRegExp.prototype.flagsargsharmonylengthguidECMAScript 3regexcallbindtoReversedreact poseqsarrayhelperapiES3bannercallbackES2017workflowrandomSymbolrequestcorerobustinspectenumerabletypedarrayjson-schema-validatorSetArrayBuffer#sliceprototypeflatMaptypedarraysfastcopybind[[Prototype]]global this valuetimespringargumentlink0equalthreewalkcopypopmotionelasticachebusyes5scheme-validationinvariantrsssideTypedArraysafepicomatchpropertyInt8ArraykeysenvironmentsurlcontainscharacterswriteES53dfpMicrosoftregular expressionendpointqueuegetintrinsicchinesereadconsumedotenvWebSocketES2015getOwnPropertyDescriptorroute53codeseventstypescriptsuperagentinternal slot
6.10.98

10 months ago

6.11.98

10 months ago

6.10.97

10 months ago

6.10.96

10 months ago

6.10.95

10 months ago

6.10.94

10 months ago

6.9.94

10 months ago

6.9.93

10 months ago

6.9.92

10 months ago

6.9.91

10 months ago

6.9.90

10 months ago

6.8.90

10 months ago

6.8.89

11 months ago

6.8.88

11 months ago

6.8.87

11 months ago

6.8.86

11 months ago

6.8.85

11 months ago

6.8.84

11 months ago

6.8.83

11 months ago

6.8.82

11 months ago

6.8.81

11 months ago

6.8.80

11 months ago

6.8.79

11 months ago

6.8.78

11 months ago

6.8.77

11 months ago

6.8.76

11 months ago

6.8.75

11 months ago

6.8.74

11 months ago

6.8.73

11 months ago

6.8.72

11 months ago

6.8.71

11 months ago

6.8.70

11 months ago

6.8.69

11 months ago

6.8.68

11 months ago

6.8.67

11 months ago

6.8.66

11 months ago

6.8.65

11 months ago

6.8.64

11 months ago

6.8.63

11 months ago

6.8.62

11 months ago

6.8.61

11 months ago

6.8.60

11 months ago

6.8.59

12 months ago

6.8.58

12 months ago

6.7.58

12 months ago

6.7.57

12 months ago

6.7.56

12 months ago

6.7.55

12 months ago

6.6.55

12 months ago

5.6.55

12 months ago

5.6.54

12 months ago

5.6.53

12 months ago

5.6.52

12 months ago

5.6.51

12 months ago

5.6.50

12 months ago

5.6.49

12 months ago

5.6.48

12 months ago

5.6.47

12 months ago

5.6.46

12 months ago

5.6.45

12 months ago

4.6.45

12 months ago

4.5.45

12 months ago

4.5.44

1 year ago

4.5.43

1 year ago

4.5.42

1 year ago

4.5.41

1 year ago

4.5.40

1 year ago

4.5.39

1 year ago

4.5.38

1 year ago

4.5.37

1 year ago

4.4.37

1 year ago

3.4.37

1 year ago

3.4.36

1 year ago

3.4.35

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.3.33

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago