Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Script.Literal breaks JS Compilation in ObjectNotation with params #360

Open
andekande opened this Issue · 1 comment

2 participants

@andekande

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.

@nikhilk
Owner

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.

@nikhilk nikhilk closed this in 40dc7ea
@nikhilk nikhilk reopened this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.