Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix error report when using an undefined label in a pirop

  • Loading branch information...
commit 13a738fdd4daea3ef423f85f6fa3a584fc8411f3 1 parent b36caef
@NotFound authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 winxedst2.winxed
View
9 winxedst2.winxed
@@ -2848,8 +2848,9 @@ function parsePiropArg(tk, owner)
var t = tk.get();
if (t.isop(':')) {
t = tk.get();
- string label = t.getidentifier();
- arg = new Reflabel(owner, label);
+ if (! t.isidentifier())
+ SyntaxError("Label expected", t);
+ arg = new Reflabel(owner, t);
}
else {
tk.unget(t);
@@ -8271,7 +8272,7 @@ class Reflabel
var owner;
var label;
- function Reflabel(owner, string label)
+ function Reflabel(owner, label)
{
self.owner = owner;
self.label = label;
@@ -8279,7 +8280,7 @@ class Reflabel
function optimize() { return self; }
function emit_get(e)
{
- string value = self.owner.getlabel(self.label);
+ string value = self.owner.getlabel(self.label.getidentifier());
if (value == null)
SyntaxError("No such label", self.label);
return value;
Please sign in to comment.
Something went wrong with that request. Please try again.