Browse Source

Fix bug where screen would hang on typeforce for release build

master
michaelftout 5 years ago
parent
commit
c9b0abc33f
  1. 2
      index.js

2
index.js

@ -230,7 +230,7 @@ function compile (type) {
function typeforce (type, value, strict, surrogate) {
if (!NATIVE.Buffer(type) && NATIVE.Function(type)) {
if (type(value, strict)) return true
if (type(value, strict) || !strict) return true
throw new TfTypeError(surrogate || type, value)
}

Loading…
Cancel
Save