1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-26 20:28:49 +08:00

Fix trying to delete non-reference

This commit is contained in:
Robert Krimen
2012-11-14 11:09:52 -08:00
parent d87480bd29
commit 0498f06be0
3 changed files with 25 additions and 9 deletions

View File

@@ -2163,3 +2163,13 @@ func Test_stringToFloat(t *testing.T) {
Is(stringToFloat("10e10000"), math.Inf(1))
Is(stringToFloat("10e10_."), "NaN")
}
func Test_delete(t *testing.T) {
Terst(t)
test := runTest()
test(`
delete 42;
`, "true")
}