diff options
author | Olly Betts <olly@survex.com> | 2021-12-20 14:55:40 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-12-20 14:55:40 +1300 |
commit | 02841b52c0c3c2fe8ab4ab5372c693c501b6c73b (patch) | |
tree | 8add26dd54b7ce719c729ae0e1b6bc3e5939aa10 | |
parent | 402a81b5b07ab0412a90155d9e67af3e9a7cbf6e (diff) | |
download | swig-test-using-swig-typecheckstruct-more.tar.gz |
[js] Completely remove fallback to SWIG_TypeCheck()test-using-swig-typecheckstruct-more
This fallback shouldn't be needed, and the abort() call I previously
added shows this never gets exercised by the testsuite at least.
-rw-r--r-- | Lib/javascript/v8/javascriptrun.swg | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/javascript/v8/javascriptrun.swg b/Lib/javascript/v8/javascriptrun.swg index 9c6f8d7a3..5eaa6067f 100644 --- a/Lib/javascript/v8/javascriptrun.swg +++ b/Lib/javascript/v8/javascriptrun.swg @@ -180,10 +180,6 @@ SWIGRUNTIME int SWIG_V8_ConvertInstancePtr(SWIGV8_OBJECT objRef, void **ptr, swi } if(cdata->info != info) { swig_cast_info *tc = SWIG_TypeCheckStruct(cdata->info, info); - if (!tc && cdata->info->name) { - tc = SWIG_TypeCheck(cdata->info->name, info); - if (tc) std::abort(); - } bool type_valid = tc != 0; if(!type_valid) { return SWIG_TypeError; |