Kill eval_global_method: it's replaced with more primitives
This commit is contained in:
Родитель
09bfd969bd
Коммит
bacb23ed1a
|
@ -78,13 +78,6 @@ function __emval_get_property(handle, key) {
|
|||
return __emval_register(_emval_handle_array[handle].value[_emval_handle_array[key].value]);
|
||||
}
|
||||
|
||||
function __emval_eval_global_method(handle, objectName, methodName) {
|
||||
var objectNameStr = Pointer_stringify(objectName);
|
||||
var methodNameStr = Pointer_stringify(methodName);
|
||||
var result = eval.call(null, objectNameStr)[methodNameStr](_emval_handle_array[handle].value);
|
||||
return __emval_register(result);
|
||||
}
|
||||
|
||||
function __emval_set_property(handle, key, value) {
|
||||
_emval_handle_array[handle].value[_emval_handle_array[key].value] = _emval_handle_array[value].value;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ namespace emscripten {
|
|||
|
||||
EM_VAL _emval_get_global(const char* name);
|
||||
EM_VAL _emval_get_property(EM_VAL object, EM_VAL key);
|
||||
EM_VAL _emval_eval_global_method(EM_VAL object, const char* objectName, const char* methodName);
|
||||
void _emval_set_property(EM_VAL object, EM_VAL key, EM_VAL value);
|
||||
void _emval_as(EM_VAL value, TYPEID returnType);
|
||||
EM_VAL _emval_call(
|
||||
|
@ -109,10 +108,6 @@ namespace emscripten {
|
|||
return val(internal::_emval_get_property(handle, val(key).handle));
|
||||
}
|
||||
|
||||
val eval_global_method(const char* objectName, const char* methodName) const {
|
||||
return val(internal::_emval_eval_global_method(handle, objectName, methodName));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void set(const T& key, val v) {
|
||||
internal::_emval_set_property(handle, val(key).handle, v.handle);
|
||||
|
|
Загрузка…
Ссылка в новой задаче