Skip to content

Commit 69d1ddb

Browse files
committed
Merge branch 'master' of github.com:tyranid/DotNetToJScript
2 parents f043d0d + 62dea69 commit 69d1ddb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

DotNetToJScript/Resources/jscript_template.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ try {
1818
var stm = base64ToStream(serialized_obj);
1919
var fmt = new ActiveXObject('System.Runtime.Serialization.Formatters.Binary.BinaryFormatter');
2020
var al = new ActiveXObject('System.Collections.ArrayList');
21-
var n = fmt.SurrogateSelector;
2221
var d = fmt.Deserialize_2(stm);
23-
al.Add(n);
22+
al.Add(undefined);
2423
var o = d.DynamicInvoke(al.ToArray()).CreateInstance(entry_class);
2524
%ADDEDSCRIPT%
2625
} catch (e) {

DotNetToJScript/Resources/vbs_template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ entry_class = "%CLASS%"
1717
Dim fmt, al, d, o
1818
Set fmt = CreateObject("System.Runtime.Serialization.Formatters.Binary.BinaryFormatter")
1919
Set al = CreateObject("System.Collections.ArrayList")
20-
al.Add fmt.SurrogateSelector
20+
al.Add Empty
2121

2222
Set d = fmt.Deserialize_2(Base64ToStream(s))
2323
Set o = d.DynamicInvoke(al.ToArray()).CreateInstance(entry_class)

DotNetToJScript/VBScriptGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static string GetScriptHeader(RuntimeVersion version, string debug_statem
2828
builder.AppendLine("Sub DebugPrint(s)");
2929
if (!String.IsNullOrEmpty(debug_statement))
3030
{
31-
builder.AppendLine("{0} s");
31+
builder.AppendFormat("{0} s", debug_statement).AppendLine();
3232
}
3333
builder.AppendLine("End Sub");
3434
builder.AppendLine();

0 commit comments

Comments
 (0)