bod
12/12/2021, 1:42 PMIR
compiler - and unfortunately I experience some errors at runtime. Calling some APIs result in "No matching signature" errors
TypeError: Error in invocation of bookmarks.create(bookmarks.CreateDetails bookmark, optional function callback): No matching signature.
I know IR
is still beta but wondering if that rings a bell to anyone. (Not sure how easy it would be for me to create a simple repo project)bod
12/12/2021, 2:05 PMIR
generated js code I see this at the top:
// ...
var create = chrome.alarms.create;
// ...
var create = chrome.bookmarks.create;
which of course is going to be a source of problems later (ahhh JavaScript, declaring 2 var with the same name is legal...)
Looking a the Legacy
generated code, I see this instead:
// ...
var create = chrome.alarms.create;
// ...
var create_0 = chrome.bookmarks.create;
Legacy was smart enough to give them different names 🙂
Will open an issue.bod
12/12/2021, 2:18 PM