Skip to content

Commit

Permalink
Fix issue that meant that only one builtin library could ever be added
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Feb 23, 2023
1 parent 435b4da commit eb9cd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build_jswrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def removeBlacklistForWrapper(blacklistfile,datas):
codeOut('const char *jswGetBuiltInJSLibrary(const char *name) {')
for modulename in jsmodules:
codeOut(" if (!strcmp(name,\""+modulename+"\")) return "+json.dumps(jsmodules[modulename])+";")
codeOut(' return 0;')
codeOut(' return 0;')
codeOut('}')

codeOut('')
Expand Down

0 comments on commit eb9cd93

Please sign in to comment.