Update mod.rs (#1852)

Using Typescript I have this warning:
`./pkg/index.js
  Line 52:22:  Expected '!==' and instead saw '!='  eqeqeq

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
`

I guess this should solve the warning.

Thank you for all the work.
This commit is contained in:
Alexandre Stein 2019-11-06 18:12:47 +01:00 committed by Alex Crichton
parent 79cf4f6198
commit 2a12ca2a4f

View File

@ -950,7 +950,7 @@ impl<'a> Context<'a> {
debug,
encode_as_ascii,
if self.config.debug {
"if (ret.read != arg.length) throw new Error('failed to pass whole string');"
"if (ret.read !== arg.length) throw new Error('failed to pass whole string');"
} else {
""
},