Implementing CheckObjectCoercible operation and partial stubs for ToPrimitive and ToObject operations.

This commit is contained in:
Ruben Ayrapetyan
2014-07-21 19:58:04 +04:00
parent 2590b032e1
commit 7e87a1fde0
2 changed files with 150 additions and 32 deletions
+38
View File
@@ -0,0 +1,38 @@
/* Copyright 2014 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef JERRY_ECMA_CONVERSION_H
#define JERRY_ECMA_CONVERSION_H
#include "ecma-globals.h"
#include "ecma-helpers.h"
/** \addtogroup ecma ---TODO---
* @{
*
* \addtogroup ecmaconversion ECMA conversion
* @{
*/
extern ecma_CompletionValue_t ecma_op_check_object_coercible( ecma_Value_t value);
extern ecma_CompletionValue_t ecma_op_to_primitive( ecma_Value_t value);
extern ecma_CompletionValue_t ecma_op_to_object( ecma_Value_t value);
/**
* @}
* @}
*/
#endif /* !JERRY_ECMA_CONVERSION_H */