aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4isel_util_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4/qv4isel_util_p.h')
-rw-r--r--src/v4/qv4isel_util_p.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/v4/qv4isel_util_p.h b/src/v4/qv4isel_util_p.h
index 0960e17f51..e10a9658f2 100644
--- a/src/v4/qv4isel_util_p.h
+++ b/src/v4/qv4isel_util_p.h
@@ -47,19 +47,11 @@
namespace QQmlJS {
-inline VM::Value nonExistantValue()
-{
- VM::Value v;
- v.tag = VM::Value::Undefined_Type;
- v.uint_32 = UINT_MAX;
- return v;
-}
-
inline VM::Value convertToValue(V4IR::Const *c)
{
switch (c->type) {
case V4IR::MissingType:
- return nonExistantValue();
+ return VM::Value::deletedValue();
case V4IR::NullType:
return VM::Value::nullValue();
case V4IR::UndefinedType: