javascript - Spider Monkey dynamically created script (from JS), attached to an object -


i working on application utilizes spider monkey run our js. have single object type (jsnode) acts interface complex dom consisting of various objects properties , methods. created , registered on fly. running problem have object function needs associated dynamically. problem when run script context of associated object, newresolve (which use recognize , define properties), far can tell cannot know it's function definition allow me define function on fly. don't sense js_compilescript correctly build function , associate handleobject. , of course can't utilize js_compilefunction without doing of script parsing myself, me feels point of utilizing spider monkey in first place, maybe wrong.

any ideas or guidance on issue?


Comments