scriptsharp
scriptsharp copied to clipboard
Script.Literal breaks JS Compilation in ObjectNotation with params
works: Script.Literal("alert({greet: 'Hello'}.greet)");
breaks: string s = "Hello"; Script.Literal("alert({greet: 'Hello'}.greet)", s); Script.Literal("alert({greet: {0}}.greet)", s); In this cases the JS compilation just stops and I get a non executable JavaScript.
You should be using {{ and }} in calls where you want { and } and have argument substitution happening (just like String.Format).
We can leave this bug open so it can track the lack of error message in case of bad format strings.