aboutsummaryrefslogtreecommitdiffstats
path: root/qv4codegen.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-12-07 20:31:19 -0800
committerSimon Hausmann <simon.hausmann@digia.com>2012-12-08 05:33:51 +0100
commit806b5fb4c14b9da712d57525c35b6333665cf26d (patch)
treeea29875d2dbd9ed0b04a51dda8e1a32e119c931c /qv4codegen.cpp
parent852cc7f443f2321b0c53077f3fc0cee577903199 (diff)
Fix typeof to work with undefined references
Change-Id: I90cd2b34a25476dfee1ec01315275b6c179d11dc Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qv4codegen.cpp')
-rw-r--r--qv4codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qv4codegen.cpp b/qv4codegen.cpp
index 8b3361b3bb..8159ede389 100644
--- a/qv4codegen.cpp
+++ b/qv4codegen.cpp
@@ -1384,7 +1384,7 @@ bool Codegen::visit(TypeOfExpression *ast)
{
Result expr = expression(ast->expression);
IR::ExprList *args = _function->New<IR::ExprList>();
- args->init(argument(*expr));
+ args->init(*expr);
_expr.code = call(_block->NAME(IR::Name::builtin_typeof, ast->typeofToken.startLine, ast->typeofToken.startColumn), args);
return false;
}