|
|
@ -232,7 +232,7 @@ int duk_builtin_object_prototype_to_string(duk_context *ctx) { |
|
|
|
|
|
|
|
int duk_builtin_object_prototype_to_locale_string(duk_context *ctx) { |
|
|
|
DUK_ASSERT_TOP(ctx, 0); |
|
|
|
duk_push_this_coercible_to_object(ctx); |
|
|
|
(void) duk_push_this_coercible_to_object(ctx); |
|
|
|
duk_get_prop_stridx(ctx, 0, DUK_STRIDX_TO_STRING); |
|
|
|
if (!duk_is_callable(ctx, 1)) { |
|
|
|
return DUK_RET_TYPE_ERROR; |
|
|
@ -243,7 +243,7 @@ int duk_builtin_object_prototype_to_locale_string(duk_context *ctx) { |
|
|
|
} |
|
|
|
|
|
|
|
int duk_builtin_object_prototype_value_of(duk_context *ctx) { |
|
|
|
duk_push_this_coercible_to_object(ctx); |
|
|
|
(void) duk_push_this_coercible_to_object(ctx); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
@ -260,8 +260,7 @@ int duk_builtin_object_prototype_is_prototype_of(duk_context *ctx) { |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
duk_push_this_coercible_to_object(ctx); |
|
|
|
h_obj = duk_get_hobject(ctx, 1); |
|
|
|
h_obj = duk_push_this_coercible_to_object(ctx); |
|
|
|
DUK_ASSERT(h_obj != NULL); |
|
|
|
|
|
|
|
/* E5.1 Section 15.2.4.6, step 3.a, lookup proto once before compare */ |
|
|
|