@@ -209,8 +209,8 @@ $B.unicode_bidi_whitespace=[9,10,11,12,13,28,29,30,31,32,133,5760,8192,8193,8194
209
209
;
210
210
__BRYTHON__.implementation=[3,13,1,'dev',0]
211
211
__BRYTHON__.version_info=[3,13,0,'final',0]
212
- __BRYTHON__.compiled_date="2024-11-05 08:16:06.546261 "
213
- __BRYTHON__.timestamp=1730790966546
212
+ __BRYTHON__.compiled_date="2024-11-05 10:25:30.265416 "
213
+ __BRYTHON__.timestamp=1730798730264
214
214
__BRYTHON__.builtin_module_names=["_ajax","_ast","_base64","_binascii","_io_classes","_json","_jsre","_locale","_multiprocessing","_posixsubprocess","_profile","_random","_sre","_sre_utils","_string","_strptime","_svg","_symtable","_tokenize","_webcomponent","_webworker","_zlib_utils","_zlib_utils1","_zlib_utils_kozh","array","builtins","dis","encoding_cp932","encoding_cp932_v2","hashlib","html_parser","marshal","math","modulefinder","posix","pyexpat","python_re","python_re_new","unicodedata","xml_helpers","xml_parser","xml_parser_backup"]
215
215
;
216
216
@@ -11424,7 +11424,8 @@ target.end_lineno=origin.end_lineno
11424
11424
target.end_col_offset=origin.end_col_offset}
11425
11425
function encode_position(a,b,c,d){if(d===undefined){return `[${[a, b, c]}]`}else{return `[${[a, b, c, d]}]`}}
11426
11426
$B.decode_position=function(pos){return pos}
11427
- function get_source_from_position(src,ast_obj){var lines=src.split('\n'),start_line=lines[ast_obj.lineno-1],res
11427
+ function get_source_from_position(scopes,ast_obj){scopes.lines=scopes.lines ?? scopes.src.split('\n')
11428
+ var lines=scopes.lines,start_line=lines[ast_obj.lineno-1],res
11428
11429
if(ast_obj.end_lineno==ast_obj.lineno){res=start_line.substring(ast_obj.col_offset,ast_obj.end_col_offset)}else{var res=start_line.substr(ast_obj.col_offset),line_num=ast_obj.lineno+1
11429
11430
while(line_num < ast_obj.end_lineno){res+=lines[line_num-1].trimLeft()
11430
11431
line_num++}
@@ -11748,7 +11749,7 @@ return}else if(last.type=="def"){ix=scopes.indexOf(last)-1}else{return}}}}
11748
11749
$B.ast.Assert.prototype.to_js=function(scopes){var test=$B.js_from_ast(this.test,scopes),msg=this.msg ? $B.js_from_ast(this.msg,scopes):"''",position=encode_position(this.test.col_offset,this.test.col_offset,this.test.end_col_offset)
11749
11750
var js=`$B.set_lineno(frame, ${this.lineno})\n`
11750
11751
return js+`$B.assert(${test}, ${msg}, ${position})`}
11751
- function annotation_to_str(obj,scopes){return get_source_from_position(scopes.src ,obj)}
11752
+ function annotation_to_str(obj,scopes){return get_source_from_position(scopes,obj)}
11752
11753
$B.ast.AnnAssign.prototype.to_js=function(scopes){compiler_check(this)
11753
11754
var postpone_annotation=scopes.symtable.table.future.features &
11754
11755
$B.CO_FUTURE_ANNOTATIONS
0 commit comments