summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js')
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
index 0ec967938..6b977c909 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
@@ -9,29 +9,29 @@ description: >
visible when an exception occurs
---*/
- var stepTwoOccurs = false;
- var stepFiveOccurs = false;
- var obj = {};
+var stepTwoOccurs = false;
+var stepFiveOccurs = false;
+var obj = {};
- Object.defineProperty(obj, "length", {
- get: function () {
- stepTwoOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- },
- configurable: true
- });
+Object.defineProperty(obj, "length", {
+ get: function() {
+ stepTwoOccurs = 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(stepTwoOccurs, 'stepTwoOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');