Several adaptations and fixes on the way to get V8 emitter running.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13788 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Oliver Buchtala 2012-09-08 01:05:37 +00:00
commit 78442b2764
6 changed files with 209 additions and 206 deletions

View file

@ -42,7 +42,7 @@ v8::Handle<v8::Value> SWIG_From_dec(long)(long value)
SWIGINTERN
int SWIG_AsVal_dec(long)(v8::Handle<v8::Value> obj, long* val)
{
if (!obj->IsInteger()) {
if (!obj->IsNumber()) {
return SWIG_TypeError;
}
if(val) *val = (long) obj->IntegerValue();