Skip to content

Commit

Permalink
Use getter to vet error handling in C.ObjectGet
Browse files Browse the repository at this point in the history
  • Loading branch information
Genevieve L'Esperance committed Sep 2, 2021
1 parent e7e17fb commit 6e1c766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestObjectMethodCall(t *testing.T) {
t.Errorf("unexpected value: %q", val)
}

val, err = ctx.RunScript(`class Obj2 { print(str) { return str.toString() } }; new Obj2()`, "")
val, err = ctx.RunScript(`class Obj2 { print(str) { return str.toString() }; get notamethod() { throw "error" } }; new Obj2()`, "")
failIf(t, err)
obj, _ = val.AsObject()
arg, _ := v8go.NewValue(ctx.Isolate(), "arg")
Expand Down

0 comments on commit 6e1c766

Please sign in to comment.