From 5ac971b27185775b10c243a4913fe125cf8f4486 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Mon, 29 Jan 2018 16:24:10 -0500 Subject: [PATCH 1/2] Small spec-text fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ae6ef46..47ba493 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ When the SetLastArrayItem method is called, the following steps are taken: Let O be ? ToObject(this value). Let len be ? ToLength(? Get(O, "length")). - If len is zeo, then + If len is not zero, then Set len to len-1 Let index be ! ToString(len). Return ? Set(O, index, value). From 48255ceac28d03162b2240e714808854df5d2625 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Mon, 29 Jan 2018 17:12:18 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 47ba493..f06518b 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ When the SetLastArrayItem method is called, the following steps are taken: Let O be ? ToObject(this value). Let len be ? ToLength(? Get(O, "length")). - If len is not zero, then + If len > 0, then Set len to len-1 Let index be ! ToString(len). Return ? Set(O, index, value).