Subj : Re: SpiderMonkey: JS_InitStandardClasses allways fails To : =?ISO-8859-1?Q?Georg_Maa=DF?= From : Brendan Eich Date : Tue May 06 2003 11:50 am Georg Maaß wrote: > After replacing > > JSClass global_class = { > "global" // sogenannter Klassen-Name > , JSCLASS_NEW_RESOLVE // > , JS_PropertyStub // add Property > , JS_PropertyStub // delete Property > , JS_PropertyStub // get Property > , JS_PropertyStub // set Property > , stub_global_enumerate // enumerate > , (JSResolveOp) stub_global_resolve // resolve > , JS_ConvertStub // convert > , JS_FinalizeStub // finalize > }; > > by > > JSClass global_class = { > "global" // sogenannter Klassen-Name > , 0 // > , JS_PropertyStub // add Property > , JS_PropertyStub // delete Property > , JS_PropertyStub // get Property > , JS_PropertyStub // set Property > , JS_EnumerateStub // enumerate > , JS_ResolveStub // resolve > , JS_ConvertStub // convert > , JS_FinalizeStub // finalize > }; > > > JS_InitStandardClasses succeeds. Now Math & co work too. Of course, because your stub_global_resolve wrongly returned false without meaning an error or exception. See news://news.mozilla.org:119/3EB74AD7.9030707@meer.net /be .