MCPcopy
hub / github.com/sql-js/sql.js / _sqlite3ErrorWithMsg

Function _sqlite3ErrorWithMsg

js/sql-debug.js:46691–46902  ·  view source on GitHub ↗
($0,$1,$2,$varargs)

Source from the content-addressed store, hash-verified

46689 STACKTOP = sp;return ($$0|0);
46690}
46691function _sqlite3ErrorWithMsg($0,$1,$2,$varargs) {
46692 $0 = $0|0;
46693 $1 = $1|0;
46694 $2 = $2|0;
46695 $varargs = $varargs|0;
46696 var $$0$i$i = 0, $$0$i$i$i = 0, $$sink4$i$i$i$i = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
46697 var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0;
46698 var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0;
46699 var $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0;
46700 var $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, dest = 0, label = 0, sp = 0, stop = 0;
46701 sp = STACKTOP;
46702 STACKTOP = STACKTOP + 112|0;
46703 $3 = sp + 40|0;
46704 $4 = sp + 16|0;
46705 $5 = sp;
46706 $6 = ((($0)) + 56|0);
46707 HEAP32[$6>>2] = $1;
46708 $7 = ($1|0)==(3082);
46709 if (!($7)) {
46710 $8 = $1 & 251;
46711 $9 = $8 | 4;
46712 $10 = ($9|0)==(14);
46713 if ($10) {
46714 $11 = HEAP32[$0>>2]|0;
46715 $12 = ((($11)) + 68|0);
46716 $13 = HEAP32[$12>>2]|0;
46717 $14 = ($13|0)==(0|0);
46718 if ($14) {
46719 $17 = 0;
46720 } else {
46721 $15 = (FUNCTION_TABLE_iiii[$13 & 255]($11,0,0)|0);
46722 $17 = $15;
46723 }
46724 $16 = ((($0)) + 64|0);
46725 HEAP32[$16>>2] = $17;
46726 }
46727 }
46728 $18 = ($2|0)==(0|0);
46729 if ($18) {
46730 HEAP32[$6>>2] = $1;
46731 $19 = ($1|0)==(0);
46732 if ($19) {
46733 $20 = ((($0)) + 248|0);
46734 $21 = HEAP32[$20>>2]|0;
46735 $22 = ($21|0)==(0|0);
46736 if ($22) {
46737 STACKTOP = sp;return;
46738 }
46739 }
46740 _sqlite3ErrorFinish($0,$1);
46741 STACKTOP = sp;return;
46742 }
46743 $23 = ((($0)) + 248|0);
46744 $24 = HEAP32[$23>>2]|0;
46745 $25 = ($24|0)==(0|0);
46746 do {
46747 if ($25) {
46748 $26 = ((($0)) + 264|0);

Callers 11

_sqlite3VdbeResetFunction · 0.85
_sqlite3PrepareFunction · 0.85
_sqlite3_declare_vtabFunction · 0.85
_sqlite3CreateFuncFunction · 0.85
_sqlite3_blob_openFunction · 0.85
_sqlite3_blob_reopenFunction · 0.85
_sqlite3CloseFunction · 0.85
_openDatabaseFunction · 0.85
_createCollationFunction · 0.85

Calls 5

_sqlite3ErrorFinishFunction · 0.85
_dbMallocRawFinishFunction · 0.85
_sqlite3VXPrintfFunction · 0.85
_strAccumFinishReallocFunction · 0.85
_sqlite3VdbeMemSetStrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…