Subj : Re: Compile the Javascript code to Bytecode. To : netscape.public.mozilla.jseng From : Peter Paulus Date : Tue Oct 04 2005 01:43 pm Brendan Eich wrote: > Did you guys look at the #ifdef DEBUG js_Disassemble JS_FRIEND_API > function in jsopcode.c? Include jsopcode.h and you can use it to > disassemble any script (to disassemble scripted functions declared or > expressed in that script takes more work ;-). > > /be Okay, I got rid of the DEBUG guard in jsopcode.h and jsopcode.c and got the disassembly just fine. // javascript var x = indesign·ColorSpace.lab; // disassembly 00000: 0 defvar "x" main: 00003: 0 bindname "x" 00006: 0 name "indesign\xE1ColorSpace" 00009: 0 getprop "lab" 00012: 0 setname "x" 00015: 0 pop With kind regards, Peter Paulus .