From 88371134bef6fbde53d565a2d62a7cf2d1108ad2 Mon Sep 17 00:00:00 2001 From: Nicolas Cannasse Date: Sun, 12 Sep 2010 18:14:24 +0000 Subject: [PATCH] fix for js/flash9 --- hscript/Parser.hx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hscript/Parser.hx b/hscript/Parser.hx index fecf176..72a6741 100644 --- a/hscript/Parser.hx +++ b/hscript/Parser.hx @@ -146,13 +146,14 @@ class Parser { var fl = new Array(); while( true ) { var tk = token(); - var id = switch( tk ) { - case TId(id): id; + var id = null; + switch( tk ) { + case TId(i): id = i; case TConst(c): if( !allowJSON ) unexpected(tk); switch( c ) { - case CString(s): s; + case CString(s): id = s; default: unexpected(tk); } case TBrClose: