From 30e693c12e05dc8d46ca8b0d59212b37691a3a01 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Thu, 27 Feb 2020 08:52:17 -0500 Subject: [PATCH] another Object test --- object_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/object_test.go b/object_test.go index 7b15a6f..ff2866a 100644 --- a/object_test.go +++ b/object_test.go @@ -728,6 +728,10 @@ func TestObjectMethods(t *testing.T) { "one": {`Object clone removeAllProtos`, PassSuccess()}, "ten": {`testValues manyProtosToRemove removeAllProtos`, PassSuccess()}, }, + "removeAllSlots": { + "none": {`Object clone removeAllSlots`, PassSuccess()}, + "one": {`testValues slotsObj := Object clone do(x := 0); testValues slotsObj clone do(x := 1) removeAllSlots x`, PassEqual(vm.NewNumber(0))}, + }, } for name, c := range cases { t.Run(name, func(t *testing.T) {