aboutsummaryrefslogtreecommitdiff
path: root/tests/embind/embind_test.cpp
AgeCommit message (Collapse)Author
2014-05-21Moarrrr templates! Remove some boilerplate in embind. Thanks imran and andy!Chad Austin
2014-05-21Passing an argument from C++ into JavaScript has 'borrow' semantics rather ↵Chad Austin
than ownership semantics. That is, to keep a reference beyond the function call, you must call .clone(). This is necessary to avoid special-casing non-overridden virtual functions. (I don't know if this change will stick. It's possible it will have some problems.)
2014-05-21Fix a bug where, when extending from a class held with intrusive pointers, ↵Chad Austin
the JavaScript object would be released when the last JS handle was destroyed, not when the object was.
2014-05-21start to checkpoint some intrusive pointer testsChad Austin
2014-05-21Make returning JavaScript instances work in the presence of base class ↵Chad Austin
pointer fixups.
2014-05-21checkpoint returning JS instances out of embindChad Austin
2014-05-21Support deriving from abstract classes with constructorsChad Austin
2014-05-21give a good error message when a pure virtual function is not implemented in ↵Chad Austin
JavaScript
2014-05-21demonstrate how binding optionally-overridden virtual functions can work.Chad Austin
2014-05-21concrete methods are accessible externally. also rethink some other tests.Chad Austin
2014-05-16expose typeof via emscripten::valChad Austin
2014-04-29fix polymeris's testsChad Austin
2014-04-29Bind std::basic_string<unsigned char> to js stringsCamilo Polymeris
2014-04-13Always require an explicit name for shared_ptr and wrapper type bindingsChad Austin
2014-04-13Add a way to opt out of compiler-generated type names for smart pointers and ↵Chad Austin
wrapper types.
2014-04-13embind doesn't always need the full std::type_info record. if ↵Chad Austin
EMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=0, then use a lighter type identifier. This shaves 175 KB off of our engine's minified JavaScript.
2014-03-28Make val::call<> compatible with asm.jsChad Austin
2014-03-28Fix passing memory_views in varargsChad Austin
2014-03-28Allow passing memory_views in varargsChad Austin
2014-03-28make val::new_ compatible with asm.jsChad Austin
2014-03-28make val::as<> compatible with asm.jsChad Austin
2014-03-28tests for val::as on strings and val tooChad Austin
2014-03-28Add some unit tests that verify we can pass all kinds of primitive types ↵Chad Austin
through val::as
2014-02-04Add a sample for adding mixins to embindChad Austin
2014-02-04Add a test to verify we can use static constants defined in classes.Chad Austin
2014-02-04Rename smart_ptr_trait::operator_new to construct_null per feedback from Chad.Andy Friesen
2014-02-04Add operator_new to smart_ptr_trait.Andy Friesen
2014-02-04Bring back Joe's original test tooChad Austin
2014-02-04Fix a possible memory corruption bug when using val::asChad Austin
2013-07-17Add a test that shows JS objects can be modified if passed by reference into ↵Chad Austin
a C++ function
2013-07-17Rename value_tuple to value_array and value_struct to value_objectChad Austin
2013-05-17Add support for multiple overloaded smart pointer constructors.Chad Austin
2013-05-17Add new unit tests to ensure that the return values of interfaces ↵Jukka Jylanki
implemented in JS don't leak memory.
2013-05-17Add support for (fast?) memory_view objects. If C++ passes a memory_view to ↵Chad Austin
JS, it gets converted into a typed array object on the other side. Intended for WebGL.
2013-05-02Add a test for interface methods that return void.Chad Austin
2013-05-02Add isAliasOf for seeing if two embind handles point to the same underlying ↵Chad Austin
object. Conflicts: tests/embind/embind_test.cpp
2013-05-02Add a select_const for selecting the const method implementation if there ↵Chad Austin
are only two. Conflicts: tests/embind/embind_test.cpp
2013-04-18Make select_overload work for member functionsChad Austin
2013-04-18calloperator wasn't pulling its own weight. We probably should have a ↵Chad Austin
higher-level register_function though...
2013-04-18Add support for read-only properties.Chad Austin
2013-04-18Add a new unit test that explicitly checks for the case when two different ↵Jukka Jylänki
classes happen to have member functions with the same name and signature - a reason why the 'instanceof' check exists in embind.js.
2013-04-18switch to EMSCRIPTEN_SYMBOL which improves code size a bit by storing the ↵Chad Austin
pointer to the string literal as a constant as opposed to a global variable.
2013-04-18fix readLatin1String to actually cover the range of latin-1 characters and ↵Chad Austin
add support for interned string symbols to emscripten::val
2013-04-18Finally! JSInterface is deadChad Austin
2013-04-18Support returning movable typesChad Austin
2013-04-18Allow passing JavaScript strings to std::wstringChad Austin
2013-04-18Add support for returning std::wstringChad Austin
2013-04-18verify non-ascii data can be passed through std::stringChad Austin
2013-04-18allow optional implementation of non-abstract virtual methodsChad Austin
2013-04-18Generalize class property access.Chad Austin