google-code-export / jslibs

Automatically exported from code.google.com/p/jslibs
0 stars 0 forks source link

jssqlite crash #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following code make jssqlite to crash:
  var code = "var db = new Database(''); db.testFun = function() { return
123 }; var res = db.Exec('SELECT testFun()')"
  var func = new Function(code);
  func();

Original issue reported on code.google.com by sou...@gmail.com on 11 Sep 2008 at 5:42

GoogleCodeExporter commented 9 years ago
It was a invalid JSContext issue while sqlite_function_call was called. Now the
JSContext is updated before each sqlite3 calls that may issue a call to
sqlite_function_call.

Original comment by sou...@gmail.com on 11 Sep 2008 at 6:58