summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/S15.10.3.1_A3_T2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/RegExp/S15.10.3.1_A3_T2.js')
-rw-r--r--test/built-ins/RegExp/S15.10.3.1_A3_T2.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/built-ins/RegExp/S15.10.3.1_A3_T2.js b/test/built-ins/RegExp/S15.10.3.1_A3_T2.js
index a65663218..2737fa7ad 100644
--- a/test/built-ins/RegExp/S15.10.3.1_A3_T2.js
+++ b/test/built-ins/RegExp/S15.10.3.1_A3_T2.js
@@ -11,14 +11,18 @@ description: >
RegExp(R,"gm")
---*/
-var __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm");
+var __instance = RegExp({
+ toString: function() {
+ return "[a-c]*";
+ }
+}, "gm");
//CHECK#1
if (__instance.constructor !== RegExp) {
- $ERROR('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor));
+ $ERROR('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor));
}
//CHECK#2
if (__instance.source !== "[a-c]*") {
- $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: '+ (__instance.source));
+ $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: ' + (__instance.source));
}