summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js')
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js48
1 files changed, 24 insertions, 24 deletions
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
index 491866633..dc56d995c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
@@ -9,34 +9,34 @@ description: >
visible when an exception occurs
---*/
- var stepThreeOccurs = false;
- var stepFiveOccurs = false;
+var stepThreeOccurs = false;
+var stepFiveOccurs = false;
- var obj = {};
+var obj = {};
- Object.defineProperty(obj, "length", {
- get: function () {
- return {
- valueOf: function () {
- stepThreeOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- }
- };
- },
- configurable: true
- });
+Object.defineProperty(obj, "length", {
+ get: function() {
+ return {
+ valueOf: function() {
+ stepThreeOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ }
+ };
+ },
+ configurable: true
+});
- var fromIndex = {
- valueOf: function () {
- stepFiveOccurs = true;
- return 0;
- }
- };
+var fromIndex = {
+ valueOf: function() {
+ stepFiveOccurs = true;
+ return 0;
+ }
+};
- Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
+Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
assert(stepThreeOccurs, 'stepThreeOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');