You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While #9620 was fixed for the --no-check case, the compile --unstable case is still broken using the test script linked to in #9620 (comment):
$ deno compile --unstable test.ts
[...]
Emit test
$ ./test
error: ReferenceError: matchAfterPrefix is not defined
at scanUntilBoundary (file://$deno$/bundle.js:1702:9)
at PartReader.read (file://$deno$/bundle.js:1737:22)
at async copyN (file://$deno$/bundle.js:107:24)
at async MultipartReader.readForm (file://$deno$/bundle.js:1825:27)
at async file://$deno$/bundle.js:2095:18
But running with --no-check passes now so that's good:
import{MultipartReader}from"https://deno.land/std@0.93.0/mime/multipart.ts";import{StringReader}from"https://deno.land/std@0.93.0/io/readers.ts";// carriage returns added for running on POSIX, not needed if on windowsconstcontent=`--------------------------366796e1c748a2fb\rContent-Disposition: form-data; name="payload"\rContent-Type: text/plain\r\rCONTENT\r--------------------------366796e1c748a2fb--`constboundary="------------------------366796e1c748a2fb";conststringReader=newStringReader(content);constmultipartReader=newMultipartReader(stringReader,boundary);constformData=awaitmultipartReader.readForm()for(constentryofformData.entries()){console.log("entry",entry);}console.log("formdata",formData);
The text was updated successfully, but these errors were encountered:
What happens when you run on Deno 1.9.0 and std 0.93.0?
Just tested on deno 1.9.0 (release, aarch64-apple-darwin) and updated the test script to use std 0.93.0, still the same error output when compiled, just different line numbers.
from: #9620 (comment)
While #9620 was fixed for the
--no-check
case, thecompile --unstable
case is still broken using the test script linked to in #9620 (comment):But running with --no-check passes now so that's good:
test.ts
:The text was updated successfully, but these errors were encountered: