Skip to content

Commit 257d863

Browse files
committed
scripting. Add missing test and use _vbs instead of _vbsHelper.
1 parent 3e9e5d2 commit 257d863

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/scripting/transformer/transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class Transformer {
77
public static ENUMS_NAME = '__enums';
88
public static GLOBAL_NAME = '__global';
99
public static STDLIB_NAME = '__stdlib';
10-
public static VBSHELPER_NAME = '__vbsHelper';
10+
public static VBSHELPER_NAME = '__vbs';
1111
public static PLAYER_NAME = '__player';
1212

1313
protected readonly ast: Program;

lib/scripting/vbs-array.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ describe('The VBScript array', () => {
5353
case 0: expect(val).to.equal(1); break;
5454
case 1: expect(val).to.equal('two'); break;
5555
case 2: expect(val).to.equal(3); break;
56+
default: throw new Error('Out of range!');
5657
}
5758
i++;
5859
}

0 commit comments

Comments
 (0)