Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Rinaldi committed Sep 27, 2021
1 parent dcb5929 commit 6b89d43
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions bug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,3 +693,31 @@ func Test_issue234(t *testing.T) {
`, "6,E")
})
}

func Test_issue369 (t *testing.T) {
tt(t, func() {
test, tester := test()

type Test struct {
Value string
}

type PtrTest struct {
*Test
}

testItem := Test{
Value: "A test value",
}

ptrTestItem := PtrTest{
Test: &testItem,
}

tester.Set("testVariable", ptrTestItem)

test(`
JSON.stringify(testVariable);
`, `{"Test":{"Value":"A test value"}}`)
})
}

0 comments on commit 6b89d43

Please sign in to comment.