summaryrefslogtreecommitdiffstats
path: root/platform/web/api/api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/web/api/api.cpp')
-rw-r--r--platform/web/api/api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/web/api/api.cpp b/platform/web/api/api.cpp
index a695091a04..9ddbe5d01d 100644
--- a/platform/web/api/api.cpp
+++ b/platform/web/api/api.cpp
@@ -99,7 +99,7 @@ Variant JavaScriptBridge::_create_object_bind(const Variant **p_args, int p_argc
r_error.expected = 1;
return Ref<JavaScriptObject>();
}
- if (p_args[0]->get_type() != Variant::STRING) {
+ if (!p_args[0]->is_string()) {
r_error.error = Callable::CallError::CALL_ERROR_INVALID_ARGUMENT;
r_error.argument = 0;
r_error.expected = Variant::STRING;