From e8e9b0882e9e093c90977c71e7db99d558b18b60 Mon Sep 17 00:00:00 2001 From: Pawel Murias Date: Mon, 5 Oct 2015 17:01:07 +0200 Subject: [PATCH] [js] when we don't have an outer context use null --- src/vm/js/QAST/Compiler.nqp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/js/QAST/Compiler.nqp b/src/vm/js/QAST/Compiler.nqp index 07fe6ab252..657529d823 100644 --- a/src/vm/js/QAST/Compiler.nqp +++ b/src/vm/js/QAST/Compiler.nqp @@ -2450,7 +2450,7 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce { my $setup; - my $outer_ctx := try $*CTX; + my $outer_ctx := try $*CTX // "null"; if self.is_known_cuid($node) { $setup := [];