Skip to content

Commit d39db6e

Browse files
committed
Update test output
1 parent 43c8a29 commit d39db6e

42 files changed

Lines changed: 1405 additions & 94 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/godot_project/gdscript/out/EReg.gd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ func matched(n: int) -> String:
2525
return ""
2626

2727
func matchedLeft() -> String:
28-
assert(false, "EReg.matchedLeft not implemented for GDScript.")
28+
assert(false, str("EReg.matchedLeft not implemented for GDScript."))
2929

3030
return ""
3131

3232
func matchedRight() -> String:
33-
assert(false, "EReg.matchedRight not implemented for GDScript.")
33+
assert(false, str("EReg.matchedRight not implemented for GDScript."))
3434

3535
return ""
3636

@@ -100,12 +100,12 @@ func replace(s: String, by: String) -> String:
100100
return self.regObj.sub.call(s, by)
101101

102102
func map(s: String, f) -> String:
103-
assert(false, "EReg.map not implemented for GDScript.")
103+
assert(false, str("EReg.map not implemented for GDScript."))
104104

105105
return ""
106106

107107
static func escape(s: String) -> String:
108-
assert(false, "EReg.escape not implemented for GDScript.")
108+
assert(false, str("EReg.escape not implemented for GDScript."))
109109

110110
return ""
111111

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
class_name haxe_Exception
2+
3+
var _message: String
4+
var _previous
5+
var _native
6+
7+
func _init(message2: String, previous2 = null, native2 = null) -> void:
8+
self._message = message2
9+
self._previous = previous2
10+
self._native = native2
11+
12+
func get_message() -> String:
13+
return self._message
14+
15+
func get_stack() -> Array[Variant]:
16+
return ([] as Array[Variant])
17+
18+
func get_previous():
19+
return self._previous
20+
21+
func get_native():
22+
return self._native
23+
24+
func unwrap():
25+
return self._native
26+
27+
func toString() -> String:
28+
return self._message
29+
30+
func details() -> String:
31+
return self._message
32+
33+
static func caught(value) -> haxe_Exception:
34+
var tempString
35+
36+
if (value == null):
37+
tempString = "null"
38+
else:
39+
tempString = str(value)
40+
41+
return haxe_Exception.new(tempString)
42+
43+
static func thrown(value):
44+
return value
45+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uid://vs73tj84lwyb

test/godot_project/gdscript/out/Log.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@tool
2-
class_name Log
2+
class_name haxe_Log
33

44
static var trace = func(v, infos = null) -> void:
5-
var _str: String = Log.formatOutput(v, infos)
5+
var _str: String = haxe_Log.formatOutput(v, infos)
66
print(_str)
77

88
func _init() -> void:

test/godot_project/gdscript/out/Reflect.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static func copy(o):
8585
if ((o as Variant) is Dictionary):
8686
return o.duplicate()
8787

88-
assert(false, "Only anonymous structures (Dictionaries) may be used with `Reflect.copy`.")
88+
assert(false, str("Only anonymous structures (Dictionaries) may be used with `Reflect.copy`."))
8989

9090
static func makeVarArgs(f):
9191
return func(args: Array[Variant]):

0 commit comments

Comments
 (0)