summaryrefslogtreecommitdiff
path: root/erts/emulator/beam/erl_bif_op.c
diff options
context:
space:
mode:
Diffstat (limited to 'erts/emulator/beam/erl_bif_op.c')
-rw-r--r--erts/emulator/beam/erl_bif_op.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/erts/emulator/beam/erl_bif_op.c b/erts/emulator/beam/erl_bif_op.c
index a594ec1493..7113d9e890 100644
--- a/erts/emulator/beam/erl_bif_op.c
+++ b/erts/emulator/beam/erl_bif_op.c
@@ -1,7 +1,7 @@
/*
* %CopyrightBegin%
*
- * Copyright Ericsson AB 1999-2016. All Rights Reserved.
+ * Copyright Ericsson AB 1999-2021. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -251,19 +251,14 @@ Eterm erl_is_function(Process* p, Eterm arg1, Eterm arg2)
goto error;
}
- if (is_fun(arg1)) {
+ if (is_any_fun(arg1)) {
ErlFunThing* funp = (ErlFunThing *) fun_val(arg1);
if (funp->arity == (Uint) arity) {
BIF_RET(am_true);
}
- } else if (is_export(arg1)) {
- Export* exp = (Export *) (export_val(arg1)[1]);
-
- if (exp->info.mfa.arity == (Uint) arity) {
- BIF_RET(am_true);
- }
}
+
BIF_RET(am_false);
}