Created
May 2, 2013 19:45
-
-
Save jnthn/5504848 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/vm/parrot/QAST/Compiler.nqp b/src/vm/parrot/QAST/Compiler.nqp | |
index ae729d0..becfebe 100644 | |
--- a/src/vm/parrot/QAST/Compiler.nqp | |
+++ b/src/vm/parrot/QAST/Compiler.nqp | |
@@ -988,6 +988,10 @@ class QAST::Compiler is HLL::Compiler { | |
multi method as_post(QAST::WVal $node, :$want) { | |
my $val := $node.value; | |
my $sc := nqp::getobjsc($val); | |
+ if nqp::isnull($sc) { | |
+ nqp::die("Object of type " ~ $val.HOW.name($val) ~ | |
+ " in QAST::WVal is not in a serialization context"); | |
+ } | |
my $handle := nqp::scgethandle($sc); | |
my $idx := nqp::scgetobjidx($sc, $val); | |
my $reg := $*REGALLOC.fresh_p(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment