diff options
Diffstat (limited to 'mcs/class/Microsoft.JScript/Microsoft.JScript/StringLiteral.cs')
-rw-r--r-- | mcs/class/Microsoft.JScript/Microsoft.JScript/StringLiteral.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mcs/class/Microsoft.JScript/Microsoft.JScript/StringLiteral.cs b/mcs/class/Microsoft.JScript/Microsoft.JScript/StringLiteral.cs index ceee426cb7a..bc2eeb9d617 100644 --- a/mcs/class/Microsoft.JScript/Microsoft.JScript/StringLiteral.cs +++ b/mcs/class/Microsoft.JScript/Microsoft.JScript/StringLiteral.cs @@ -8,6 +8,7 @@ // using System; +using System.Reflection.Emit; namespace Microsoft.JScript { @@ -34,6 +35,13 @@ namespace Microsoft.JScript { { return true; } + + internal override void Emit (EmitContext ec) + { + if (ec.is_global_code_method) { + ec.ig.Emit (OpCodes.Ldstr, str); + } + } } } |