6.11.98 • Published 1 year ago

@diotoborg/earum-vero v6.11.98

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

6.11.98

1 year ago

6.10.97

1 year ago

6.10.96

1 year ago

6.10.95

1 year ago

6.10.94

1 year ago

6.9.94

1 year ago

6.9.93

1 year ago

6.9.92

1 year ago

6.9.91

1 year ago

6.9.90

1 year ago

6.8.90

1 year ago

6.8.89

1 year ago

6.8.88

1 year ago

6.8.87

1 year ago

6.8.86

1 year ago

6.8.85

1 year ago

6.8.84

1 year ago

6.8.83

2 years ago

6.8.82

2 years ago

6.8.81

2 years ago

6.8.80

2 years ago

6.8.79

2 years ago

6.8.78

2 years ago

6.8.77

2 years ago

6.8.76

2 years ago

6.8.75

2 years ago

6.8.74

2 years ago

6.8.73

2 years ago

6.8.72

2 years ago

6.8.71

2 years ago

6.8.70

2 years ago

6.8.69

2 years ago

6.8.68

2 years ago

6.8.67

2 years ago

6.8.66

2 years ago

6.8.65

2 years ago

6.8.64

2 years ago

6.8.63

2 years ago

6.8.62

2 years ago

6.8.61

2 years ago

6.8.60

2 years ago

6.8.59

2 years ago

6.8.58

2 years ago

6.7.58

2 years ago

6.7.57

2 years ago

6.7.56

2 years ago

6.7.55

2 years ago

6.6.55

2 years ago

5.6.55

2 years ago

5.6.54

2 years ago

5.6.53

2 years ago

5.6.52

2 years ago

5.6.51

2 years ago

5.6.50

2 years ago

5.6.49

2 years ago

5.6.48

2 years ago

5.6.47

2 years ago

5.6.46

2 years ago

5.6.45

2 years ago

4.6.45

2 years ago

4.5.45

2 years ago

4.5.44

2 years ago

4.5.43

2 years ago

4.5.42

2 years ago

4.5.41

2 years ago

4.5.40

2 years ago

4.5.39

2 years ago

4.5.38

2 years ago

4.5.37

2 years ago

4.4.37

2 years ago

3.4.37

2 years ago

3.4.36

2 years ago

3.4.35

2 years ago

2.4.35

2 years ago

2.4.34

2 years ago

2.4.33

2 years ago

2.3.33

2 years ago

2.2.33

2 years ago

2.2.32

2 years ago

2.2.31

2 years ago

2.2.30

2 years ago

2.2.29

2 years ago

2.2.28

2 years ago

2.2.27

2 years ago

2.2.26

2 years ago

2.2.25

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.21

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago