Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

looking for browser script tag example #5

Open
pieper opened this issue Apr 3, 2020 · 1 comment
Open

looking for browser script tag example #5

pieper opened this issue Apr 3, 2020 · 1 comment

Comments

@pieper
Copy link

pieper commented Apr 3, 2020

Hi -

I got the install files from here and put them in a directory along with an index.html that contains basically just this line: <script type="module" src="magick.js"></script>.

In the console I get the error message and stack trace below. This makes me think it's almost working but not quite. Is this script tag mode supportable? I'd like to stick this in an existing page without changing my whole setup.

(p.s. as a hack to get around this bug, I added var tempDouble; var tempI64; to the start of magick.js, but I think that's unrelated to this script tag usage).

magick.js:5 Error: Invalid argument or not enough arguments
put_char @ magick.js:5
write @ magick.js:5
write @ magick.js:5
doWritev @ magick.js:5
___syscall146 @ magick.js:5
(anonymous) @ 00b2abce-1277:53
(anonymous) @ 00b2abce-1897:116
(anonymous) @ 00b2abce-732:5
(anonymous) @ 00b2abce-1677:30
(anonymous) @ 00b2abce-106:15
(anonymous) @ 00b2abce-2138:351
(anonymous) @ 00b2abce-2136:846
(anonymous) @ 00b2abce-1682:275
(anonymous) @ 00b2abce-1701:4
Module._main @ magick.js:5
callMain @ magick.js:5
doRun @ magick.js:5
run @ magick.js:5
runCaller @ magick.js:5
removeRunDependency @ magick.js:5
receiveInstance @ magick.js:5
receiveInstantiatedSource @ magick.js:5
Promise.then (async)
createWasm @ magick.js:5
Module.asm @ magick.js:5
(anonymous) @ magick.js:5
magick.js:5 
put_char @ magick.js:5
write @ magick.js:5
write @ magick.js:5
doWritev @ magick.js:5
___syscall146 @ magick.js:5
(anonymous) @ 00b2abce-1277:53
(anonymous) @ 00b2abce-1897:116
(anonymous) @ 00b2abce-732:5
(anonymous) @ 00b2abce-1677:30
(anonymous) @ 00b2abce-106:15
(anonymous) @ 00b2abce-2138:351
(anonymous) @ 00b2abce-2136:846
(anonymous) @ 00b2abce-1682:275
(anonymous) @ 00b2abce-1701:4
Module._main @ magick.js:5
callMain @ magick.js:5
doRun @ magick.js:5
run @ magick.js:5
runCaller @ magick.js:5
removeRunDependency @ magick.js:5
receiveInstance @ magick.js:5
receiveInstantiatedSource @ magick.js:5
Promise.then (async)
createWasm @ magick.js:5
Module.asm @ magick.js:5
(anonymous) @ magick.js:5
magick.js:5 Usage: this.program tool [ {option} | {image} ... ] {output_image}
magick.js:5 Usage: this.program [ {option} | {image} ... ] {output_image}
magick.js:5        this.program [ {option} | {image} ... ] -script {filename} [ {script_args} ...]
magick.js:5        this.program -help | -version | -usage | -list {option}
@av01d
Copy link

av01d commented Mar 19, 2024

Same question here!

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

No branches or pull requests

2 participants