1 /* Check the type of a SEE object so it's safe to cast */
8 #include "ecmascript/see/checktype.h"
11 see_check_class(struct SEE_interpreter
*interp
,
12 const struct SEE_object
*object
,
13 const struct SEE_objectclass
*class)
15 if (object
->objectclass
!= class)
16 SEE_error_throw(interp
, interp
->TypeError
,
17 "got %s, expected %s",
18 object
->objectclass
->Class
,