@@ -719,7 +719,7 @@ struct IR
719719 id = (code+ 1 ).id;
720720 s = id.value.string ;
721721 if (! scope_get(scopex, id))
722- throw new ErrorValue(Dobject.ReferenceError(cc, errmsgtbl[ERR_UNDEFINED_VAR ],s));
722+ throw new ErrorValue(cc, Dobject.ReferenceError(cc, errmsgtbl[ERR_UNDEFINED_VAR ],s));
723723 code += 2 ;
724724 break ;
725725 case IRgetscope: // a = s
@@ -797,7 +797,7 @@ struct IR
797797 a = GETa(code);
798798 if (! v)
799799 {
800- throw new ErrorValue(Dobject.ReferenceError(cc, errmsgtbl[ERR_UNDEFINED_VAR ],s));
800+ throw new ErrorValue(cc, Dobject.ReferenceError(cc, errmsgtbl[ERR_UNDEFINED_VAR ],s));
801801 // a.putVundefined();
802802 /+
803803 if (b)
@@ -1145,7 +1145,7 @@ struct IR
11451145 o = c.toObject(cc);
11461146 if (! o){
11471147 ErrInfo errinfo;
1148- throw new ErrorValue(Dobject.RuntimeError(&errinfo,cc,errmsgtbl[ERR_RHS_MUST_BE_OBJECT ]," in" ,c.toString(cc)));
1148+ throw new ErrorValue(cc, Dobject.RuntimeError(&errinfo,cc,errmsgtbl[ERR_RHS_MUST_BE_OBJECT ]," in" ,c.toString(cc)));
11491149 }
11501150 a.putVboolean(o.HasProperty(s));
11511151 code += 4 ;
@@ -1217,7 +1217,7 @@ struct IR
12171217 Value.copy(a, v);
12181218 }
12191219 else
1220- throw new ErrorValue(Dobject.ReferenceError(cc,errmsgtbl[ERR_UNDEFINED_VAR ], s));
1220+ throw new ErrorValue(cc, Dobject.ReferenceError(cc,errmsgtbl[ERR_UNDEFINED_VAR ], s));
12211221 }
12221222 code += 4 ;
12231223 break ;
@@ -1271,7 +1271,7 @@ struct IR
12711271 {
12721272 // GETa(code).putVundefined();
12731273 // FIXED: as per ECMA v5 should throw ReferenceError
1274- throw new ErrorValue(Dobject.ReferenceError(cc,id.value.string ));
1274+ throw new ErrorValue(cc, Dobject.ReferenceError(cc,id.value.string ));
12751275 // v = signalingUndefined(id.value.string);
12761276 }
12771277 code += 3 ;
@@ -1310,7 +1310,7 @@ struct IR
13101310 {
13111311 // GETa(code).putVundefined();
13121312 // FIXED: as per ECMA v5 should throw ReferenceError
1313- throw new ErrorValue(Dobject.ReferenceError(cc,id.value.string ));
1313+ throw new ErrorValue(cc, Dobject.ReferenceError(cc,id.value.string ));
13141314 // v = signalingUndefined(id.value.string);
13151315 }
13161316 code += 3 ;
@@ -2064,7 +2064,6 @@ struct IR
20642064 }
20652065 catch (ErrorValue err)
20662066 {
2067- import std.stdio ; writefln(" ERROR: %s" , err.toString());
20682067 v = unwindStack(&err.value);
20692068 if (v)// v is exception that was not caught
20702069 return v;
0 commit comments