Skip to content

various updates#232

Merged
BobHanson merged 28 commits intojava2script:masterfrom
BobHanson:master
Dec 24, 2024
Merged

various updates#232
BobHanson merged 28 commits intojava2script:masterfrom
BobHanson:master

Conversation

@BobHanson
Copy link
Copy Markdown
Collaborator

No description provided.

overstepped on trying to optimize SearchAndExecuteMethod.
new interface for JSUtilI.java:

void getMediaInfoAsync(byte[] videoData, String trackType, String path,
Consumer<Map<String, Object>> success, Consumer<String> onError)


loads mediainfo.js and MediaInfoModule.wasm from https://unpkg.com Note
that the two files can more efficiently be included in a project, as has
been done with TrackerJS, where very minor tweaks of the JavaScript
allow local file reading from core/_ES6/

-- remove unnecessary script source message at end of mediainfojs

-- remove n.locateFile call using 0&n.locateFile

-- also, wasm can be in data:application/octet-stream;base64, format if
pulled from a byte[] resource.
stub needs to throw the correct exception
//BH 2024.07.14 -- 5.0.1-v4 fixes numerical array initializer using
characters ['a','b',...], but not new int[] { "test".charAt(3) }
?j2sdebugcore == ?j2snozcore
?j2sdebugcode == ?j2snocore
var f = null;
eval(funStr) // creates f()
return f;

Google compresser turns this into "return null"

effect was to make String.replaceAll() fail.
@BobHanson BobHanson merged commit 7104256 into java2script:master Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant