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
[[Raw]] of an entry of [[DedentMap]] is supposed to be Object (that's held weakly). Unfortunately DedentTemplateStringsArray() operation can create an entry where [[Raw]] is set to an arbitrary ECMAScript value because this operation does not perform any conversion/santity check on rawInput.
The text was updated successfully, but these errors were encountered:
Step 1 of String.dedent() is to ensure that templateOrFn is an object, which means that it could be held weakly. There's no way to verify whether the object itself is strongly held.
Note, too, that the CanBeHeldWeakly AO (used by WeakMaps) just checks If v is an Object, return true..
Please, read my report again. It is not about templateOrFn not being an object but about rawInput (i.e. value of raw property of templateOrFn) not being an object.
[[Raw]]
of an entry of[[DedentMap]]
is supposed to beObject
(that's held weakly). UnfortunatelyDedentTemplateStringsArray()
operation can create an entry where[[Raw]]
is set to an arbitrary ECMAScript value because this operation does not perform any conversion/santity check onrawInput
.The text was updated successfully, but these errors were encountered: