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:
10
otto_test.go
10
otto_test.go
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user