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
shim/string isn't using the native functions like startsWith since the has test es6-string-raw is always false. Tested in Chrome, Edge, Firefox, and Safari where es6-string was true.
Bug
shim/string
isn't using the native functions likestartsWith
since thehas
testes6-string-raw
is alwaysfalse
. Tested in Chrome, Edge, Firefox, and Safari wherees6-string
wastrue
.This seems like a sniff bug, but if not, then
shim/string
should be updated to not requirees6-string
andes6-string-raw
to both betrue
before using the available native ES6 functions at:https://github.com/dojo/framework/blob/master/src/shim/string.ts#L144
Package Version
3.0.1
Code
Console code using Dojo 1 AMD loader after loading
shim/string
:require("@dojo/framework/has/has").default("es6-string-raw")
Expected behavior:
outputs
true
Actual behavior:
outputs
false
The text was updated successfully, but these errors were encountered: