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

1 year ago

6.8.82

1 year ago

6.8.81

1 year ago

6.8.80

1 year ago

6.8.79

1 year ago

6.8.78

1 year ago

6.8.77

1 year ago

6.8.76

1 year ago

6.8.75

1 year ago

6.8.74

1 year ago

6.8.73

1 year ago

6.8.72

1 year ago

6.8.71

1 year ago

6.8.70

1 year ago

6.8.69

1 year ago

6.8.68

1 year ago

6.8.67

1 year ago

6.8.66

1 year ago

6.8.65

1 year ago

6.8.64

1 year ago

6.8.63

1 year ago

6.8.62

1 year ago

6.8.61

1 year ago

6.8.60

1 year ago

6.8.59

1 year ago

6.8.58

1 year ago

6.7.58

1 year ago

6.7.57

1 year ago

6.7.56

1 year ago

6.7.55

1 year ago

6.6.55

1 year ago

5.6.55

1 year ago

5.6.54

1 year ago

5.6.53

1 year ago

5.6.52

1 year ago

5.6.51

1 year ago

5.6.50

1 year ago

5.6.49

1 year ago

5.6.48

1 year ago

5.6.47

1 year ago

5.6.46

1 year ago

5.6.45

1 year ago

4.6.45

1 year ago

4.5.45

1 year 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