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
$ deno run example.tserror: Uncaught (in promise) AssertionError: Values are not equal. [Diff] Actual / Expected- false+ true throw new AssertionError(message); ^ at assertEquals (file://…/deno_std/assert/equals.ts:51:9) at file://…/example.ts:7:1
If you remove the check altogether it would work, but much slower than the original in case prefix is sometimes longer than source, because V8 deoptimizes the function when source[i] indexes out of bounds.
std/bytes/starts_with.ts
Line 27 in 10ee73d
this can be written as
since
prefix
can't be longer than thesource
.The text was updated successfully, but these errors were encountered: