()
| 496 | } |
| 497 | |
| 498 | func ExampleObject_GetOwnPropertyNames() { |
| 499 | vm := New() |
| 500 | obj := vm.NewObject() |
| 501 | obj.DefineDataProperty("test", vm.ToValue(true), FLAG_TRUE, FLAG_TRUE, FLAG_FALSE) // define a non-enumerable property that Keys() would not return |
| 502 | fmt.Print(obj.GetOwnPropertyNames()) |
| 503 | // Output: [test] |
| 504 | } |
| 505 | |
| 506 | func TestObjectEquality(t *testing.T) { |
| 507 | type CustomInt int |
nothing calls this directly
no test coverage detected
searching dependent graphs…