intertype
Advanced tools
Comparing version 0.110.0 to 0.110.1
@@ -104,9 +104,12 @@ (function() { | ||
//....................................................................................................... | ||
if ((name != null) && ((dsc_name = GUY.props.get(dsc, 'name', null)) != null) && (dsc_name !== name)) { | ||
throw new E.Intertype_ETEMPTBD('^tf@6^', `got two conflicting values for \`name\` (${rpr(name)} and ${rpr(dsc_name)})`); | ||
} | ||
if (dsc.name == null) { | ||
// debug '^456456^', { dsc_name: ( GUY.props.get dsc, 'name', null ), } | ||
// if name? and ( dsc_name = GUY.props.get dsc, 'name', null )? and ( dsc_name isnt name ) | ||
// throw new E.Intertype_ETEMPTBD '^tf@6^', \ | ||
// "got two conflicting values for `name` (#{rpr name} and #{rpr dsc_name})" | ||
if (name != null) { | ||
dsc.name = name; | ||
dsc.typename = name; | ||
} else if ((dsc_name = GUY.props.get(dsc, 'name', null)) != null) { | ||
dsc.typename = dsc.name; | ||
} | ||
dsc.typename = dsc.name; | ||
//....................................................................................................... | ||
@@ -113,0 +116,0 @@ this._assemble_fields(dsc); |
{ | ||
"name": "intertype", | ||
"version": "0.110.0", | ||
"version": "0.110.1", | ||
"description": "A JavaScript typechecker", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
356909
1915