Don't string match function names for Typing_env pseudo functions
commit5271e5077ed2d70264b402f5b5fc1fc428d5c6f7
authorVassil Mladenov <vmladenov@fb.com>
Sun, 3 Jan 2021 03:44:46 +0000 (2 19:44 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sun, 3 Jan 2021 03:46:20 +0000 (2 19:46 -0800)
tree23ac35bab6e2af7a84dab88c7a379b86e054c86a
parent2cf86a75d15d40a20d1fc9086bffaf83c5e694d5
Don't string match function names for Typing_env pseudo functions

Summary: This is the same problem covered in {D25729833 (https://github.com/facebook/hhvm/commit/afe98128f68b81083c70db41e1ecfbc6c2476563)}. This is especially bad because these are debugging functions which never appear in WWW, but we're wasting time checking for their names.

Reviewed By: periodic1236

Differential Revision: D25740041

fbshipit-source-id: 119ac834d2c390207cc6a73db8791d1e2f09202b
hphp/hack/src/typing/typing.ml