@@ -309,7 +309,7 @@ function isInteger(token)
309
309
310
310
function isString ( token )
311
311
{
312
- return / ^ " .* " / . test ( token ) ;
312
+ return / ^ " .* " / . test ( token . string ) ;
313
313
}
314
314
315
315
@@ -426,7 +426,7 @@ class Parser
426
426
{
427
427
let result ;
428
428
if ( isRegister ( this . tokens [ this . idx ] ) ) {
429
- if ( fprPattern . test ( this . tokens [ this . idx ] ) )
429
+ if ( fprPattern . test ( this . tokens [ this . idx ] . string ) )
430
430
result = FPRegisterID . forName ( this . tokens [ this . idx ] . codeOrigin , this . tokens [ this . idx ] . string ) ;
431
431
else
432
432
result = RegisterID . forName ( this . tokens [ this . idx ] . codeOrigin , this . tokens [ this . idx ] . string ) ;
@@ -813,7 +813,7 @@ class Parser
813
813
let codeOrigin = this . tokens [ this . idx ] . codeOrigin ;
814
814
let name = this . tokens [ this . idx ] . string ;
815
815
this . idx ++ ;
816
- if ( ( ! final && this . idx == this . tokens . size ) || ( final && final . test ( this . tokens [ this . idx ] ) ) ) {
816
+ if ( ( ! final && this . idx == this . tokens . size ) || ( final && final . test ( this . tokens [ this . idx ] . string ) ) ) {
817
817
// Zero operand instruction, and it's the last one.
818
818
list . push ( new Instruction ( codeOrigin , name , [ ] , this . annotation ) ) ;
819
819
this . annotation = null ;
@@ -935,7 +935,7 @@ class Parser
935
935
let fileList = [ ] ;
936
936
fileList . push ( this . tokens [ this . idx ] . codeOrigin . fileName ) ;
937
937
while ( true ) {
938
- if ( ( this . idx == this . tokens . length && ! final ) || ( final && final . test ( this . tokens [ this . idx ] ) ) )
938
+ if ( ( this . idx == this . tokens . length && ! final ) || ( final && final . test ( this . tokens [ this . idx ] . string ) ) )
939
939
break ;
940
940
else if ( this . tokens [ this . idx ] . isEqualTo ( "include" ) ) {
941
941
this . idx ++ ;
0 commit comments