@@ -1136,7 +1136,7 @@ func TestTryCatch(t *testing.T) {
11361136 input : "let error = 'error not triggered'\n try {undefinedVariable} catch e {error = e}\n error" ,
11371137 output : shared.RuntimeValue {
11381138 Type : shared .String ,
1139- Value : "Runtime Error: Cannot resolve variable `undefinedVariable`" ,
1139+ Value : "\" Runtime Error: Cannot resolve variable `undefinedVariable`\" " ,
11401140 },
11411141 },
11421142 {
@@ -1157,14 +1157,14 @@ func TestTryCatch(t *testing.T) {
11571157 input : "let error = 'error not triggered'\n try {let x = y} catch e {error = e}\n error" ,
11581158 output : shared.RuntimeValue {
11591159 Type : shared .String ,
1160- Value : "Runtime Error: Cannot resolve variable `y`" ,
1160+ Value : "\" Runtime Error: Cannot resolve variable `y`\" " ,
11611161 },
11621162 },
11631163 {
11641164 input : "let error = 'error not triggered'\n try {let x = 10\n x = x + y} catch e {error = e}\n error" ,
11651165 output : shared.RuntimeValue {
11661166 Type : shared .String ,
1167- Value : "Runtime Error: Cannot resolve variable `y`" ,
1167+ Value : "\" Runtime Error: Cannot resolve variable `y`\" " ,
11681168 },
11691169 },
11701170 {
@@ -1178,7 +1178,7 @@ func TestTryCatch(t *testing.T) {
11781178 input : "let error = 'error not triggered'\n try {let obj = {foo: 'bar'}\n obj.foo()} catch e {error = e}\n error" ,
11791179 output : shared.RuntimeValue {
11801180 Type : shared .String ,
1181- Value : "Runtime Error: Cannot invoke a non-function (attempted to call a string)." ,
1181+ Value : "\" Runtime Error: Cannot invoke a non-function (attempted to call a string).\" " ,
11821182 },
11831183 },
11841184 {
@@ -1192,7 +1192,7 @@ func TestTryCatch(t *testing.T) {
11921192 input : "let error = 'error not triggered'\n try {let arr = [1, 2, 3]\n arr.foo()} catch e {error = e}\n error" ,
11931193 output : shared.RuntimeValue {
11941194 Type : shared .String ,
1195- Value : "Runtime Error: Cannot access property of array by non-number (attempting to access properties by Identifier)." ,
1195+ Value : "\" Runtime Error: Cannot access property of array by non-number (attempting to access properties by Identifier).\" " ,
11961196 },
11971197 },
11981198 {
@@ -1473,7 +1473,7 @@ func TestContinueKeyword(t *testing.T) {
14731473 input : "let err = ''\n try {continue} catch e {err = e}\n err" ,
14741474 output : shared.RuntimeValue {
14751475 Type : shared .String ,
1476- Value : "Runtime Error: `continue` statement used outside of a loop context." ,
1476+ Value : "\" Runtime Error: `continue` statement used outside of a loop context.\" " ,
14771477 },
14781478 },
14791479 }
@@ -1647,7 +1647,7 @@ func TestBreakKeyword(t *testing.T) {
16471647 input : "let err = ''\n try {break} catch e {err = e}\n err" ,
16481648 output : shared.RuntimeValue {
16491649 Type : shared .String ,
1650- Value : "Runtime Error: `break` statement used outside of a loop context." ,
1650+ Value : "\" Runtime Error: `break` statement used outside of a loop context.\" " ,
16511651 },
16521652 },
16531653 }
0 commit comments