Skip to content

Commit

Permalink
FormatJson accepts string or integer for 2nd param
Browse files Browse the repository at this point in the history
  • Loading branch information
markwpearce committed Jul 25, 2023
1 parent f3cc1f4 commit 7b36acc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/globalCallables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ObjectType } from './types/ObjectType';
import { StringType } from './types/StringType';
import { VoidType } from './types/VoidType';
import util from './util';
import { UnionType } from './types/UnionType';

export let globalFile = new BrsFile('global', 'global', null);
globalFile.parse('');
Expand Down Expand Up @@ -561,7 +562,7 @@ Normally non-ASCII characters are escaped in the output string as "\\uXXXX" wher
isOptional: false
}, {
name: 'flags',
type: new StringType(),
type: new UnionType([IntegerType.instance, StringType.instance]),
isOptional: true
}]
}, {
Expand Down

0 comments on commit 7b36acc

Please sign in to comment.