Skip to content

Commit

Permalink
fix tars2node web mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Feb 12, 2025
1 parent 84f8635 commit 986016c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tars2node/gen_ts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ void CodeGenerator::generateTS(const ContextPtr &pPtr)
ostr << "import * as " << it->second.sModule << " from \"" << TC_File::excludeFileExt(it->second.sFile) << "\";" << endl;
}

if (bQuickFunc && _bWeb)
if (bQuickFunc && !_bWeb)
{
ostr << endl;
ostr << "const _hasOwnProperty = Object.prototype.hasOwnProperty;" << endl;
Expand Down

0 comments on commit 986016c

Please sign in to comment.