MCPcopy Create free account
hub / github.com/buke/quickjs-go / TestValueObjectControlAPIsInvalidReceiver

Function TestValueObjectControlAPIsInvalidReceiver

value_test.go:187–197  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

185}
186
187func TestValueObjectControlAPIsInvalidReceiver(t *testing.T) {
188 useStableOwnerHooksForLegacySubtests(t)
189
190 var nilValue *Value
191 require.Nil(t, nilValue.Prototype())
192 require.False(t, nilValue.IsExtensible())
193 require.False(t, nilValue.PreventExtensions())
194 require.False(t, nilValue.Seal())
195 require.False(t, nilValue.Freeze())
196 require.False(t, nilValue.SetPrototype(nil))
197}
198
199func TestValueIsDateAPI(t *testing.T) {
200 useStableOwnerHooksForLegacySubtests(t)

Callers

nothing calls this directly

Calls 7

PrototypeMethod · 0.95
IsExtensibleMethod · 0.95
PreventExtensionsMethod · 0.95
SealMethod · 0.95
FreezeMethod · 0.95
SetPrototypeMethod · 0.95

Tested by

no test coverage detected