Skip to content

Commit

Permalink
Do not start if bytecode has no debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Oct 30, 2024
1 parent cfd849d commit c687c03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hld/Module.hx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ class Module {
public function load( data : haxe.io.Bytes ) {
code = new format.hl.Reader().read(new haxe.io.BytesInput(data));

if( code.debugFiles == null )
throw "Debug info not available in the bytecode";

for( t in code.types )
switch( t ) {
case HObj(o), HStruct(o):
Expand Down

0 comments on commit c687c03

Please sign in to comment.