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
If I try to use a tagged template literal, I get the error message Unexpected token after prop: `
The SandboxJS code can be as simple as return primitivesOnlyValidator`Input string`; as long as the primitivesOnlyValidator function is defined in the globals/scope of the execution.
Apparently, the engine/parser "thinks" that primitivesOnlyValidator is referring to a variable or a property being accessed, so the ` character is not valid in that context.
If I try to use a tagged template literal, I get the error message
Unexpected token after prop: `
The SandboxJS code can be as simple as
return primitivesOnlyValidator`Input string`;
as long as theprimitivesOnlyValidator
function is defined in the globals/scope of the execution.Apparently, the engine/parser "thinks" that
primitivesOnlyValidator
is referring to a variable or a property being accessed, so the`
character is not valid in that context.Here is a sample article on this concept.
The text was updated successfully, but these errors were encountered: