From c9b0abc33ff006d7a6a6150eff034bc7eb8b07de Mon Sep 17 00:00:00 2001 From: michaelftout Date: Wed, 20 Feb 2019 21:13:27 -0800 Subject: [PATCH] Fix bug where screen would hang on typeforce for release build --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b4d79cf..288552c 100644 --- a/index.js +++ b/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) }