aboutsummaryrefslogtreecommitdiff
path: root/tests/embind/embind.test.js
AgeCommit message (Collapse)Author
2014-06-18Added embind support for std::unique_ptrNikolay Vorobyov
2014-05-29Fix a bug where a returned handle to a derived JS object would not always ↵Chad Austin
correctly increment the reference count of the underlying smart pointer.
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-21Bring back the ability to implement a C++ interface with a specific ↵Chad Austin
JavaScript object.
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-21Prevent some common mistakes when calling parent constructors and destructorsChad Austin
2014-05-21handle some scenarios where you mix delete() and deleteLater()Chad Austin
2014-05-21If embind knows about a live JavaScript instance and it matches a raw ↵Chad Austin
pointer that gets returned, then return the JS instance.
2014-05-21Call __destruct on the JS implementation when the instance is destroyed.Chad Austin
2014-05-21Rename initialize to __construct to avoid conflicting with C++ function namesChad Austin
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-21Remove .implement from the public APIChad Austin
2014-05-21demonstrate how binding optionally-overridden virtual functions can work.Chad Austin
2014-05-21some notes for future functionality.Chad Austin
2014-05-21make optional methods workChad Austin
2014-05-21concrete methods are accessible externally. also rethink some other tests.Chad Austin
2014-05-21A bunch of other tests pass now too.Chad Austin
2014-05-21properties set in constructor persist to methodsChad Austin
2014-05-21instanceof passesChad Austin
2014-05-21can extend, construct, and deleteChad Austin
2014-05-21sketch extend methodChad Austin
2014-05-21and of course, instanceof should work as you expectChad Austin
2014-05-21write a bunch of unit tests for the desired javascript inheritance apiChad Austin
2014-05-16expose typeof via emscripten::valChad Austin
2014-04-29Bind std::basic_string<unsigned char> to js stringsCamilo Polymeris
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-04Fix a possible double-deletion in embind when returning a smart pointer from ↵Chad Austin
an abstract class implementation.
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-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-17Fix a bunch of things that break under closure advanced optimizations. Now, ↵Chad Austin
to my knowledge, embind fully supports closure advanced mode.
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-17Allow implicit conversion from booleans to ints/floats (for WebGL)Chad Austin
2013-05-17Implement an autorelease pool in embind.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.