Re: [v8-users] Building v8
Yes, I lose gyp_v8. When I updated: svn co http://gyp.googlecode.com/svn/trunk build/gyp. I succesfully compiled v8. Thank you, Jakob. On Sat, Dec 1, 2012 at 6:25 PM, Maksim Lukyanchenko > > wrote: > >> I'm trying to compile V8 on Win7 for VS2010: >> >> svn co http://gyp.googlecode.com/svn/trunk build/gyp >> >> svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26 >> third_party/python_26 >> >> svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin >> third_party/cygwin >> >> >> 1) And when I try: >> c:\v8> third_party/python_26/python.exe build\gyp_v8 >> >> I get the message: >> [Errno2] No such file or directory >> > > This should work, and last time I tried it, it did work for me. Please try > to figure out which file it is complaining about. When you use backslashes > instead of slashes, does that change anything? Can you manually verify that > third_party\python_26\python.exe and build\gyp_v8 exist? > > >> >> And it's I can understand. >> >> 2) When I try: >> c:\v8> third_party/python_26/python.exe build\gyp >> > > This can't work. > > >> I get the message: >> third_party/python_26/python.exe: can't find '__main__.py' in >> 'build\\gyp' >> >> 3) When I try: >> c:\v8> third_party/python_26/python.exe build\gyp\gyp >> > > This can't work either. > > >> I get the message: >> gyp: usage: gyp [options ...][build_file ...] >> gyp: error: no build_file >> >> What am I doing wrong and how do I compile V8? >> >> -- >> v8-users mailing list >> v8-u...@googlegroups.com >> http://groups.google.com/group/v8-users > > > -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users
Re: [v8-users] Accessing a named property with the same name as a getter/setter
Hi. Thanks for the answer. How can I support the code in the site? Thanks, Erez On Sunday, December 2, 2012 4:00:04 PM UTC+2, Jakob Kummerow wrote: > > JavaScript objects can't have a method and a property of the same name. > Rename one of the two. > > > On Sun, Dec 2, 2012 at 10:20 AM, Erez >wrote: > >> Hi. >> I'm using v8 to process web pages. >> I have the following problem with a code on a certain site. >> The site has the following structure of forms: >> >> >> >> >> >> >> >> >> The form content is a table of data, where each row contains a few >> actions that can be applied to the data (edit, copy, view) and such. >> The actions are implemented in JavaScript code with an onclick event to a >> function similar to this: >> function sumbitForm(objectid, formName, method, action){ >> var form = document.forms[formName]; >> form.objectid.value = objectid; >> form.method.value = method; >> form.action.value = action; >> form.submit(); >> } >> >> The problem is that when the code executes, calling form.method.value >> really returns the accessor (getter) to the form method attribute instead >> of the form method hidden parameter. >> >> I've defined the accessors like this: >> functionTemplate->InstanceTemplate()->SetAccessor(String::New("method"), >> GetMethod, SetMethod); >> >> The GetMethod signature is: >> Handle HTMLFormElement::GetAction(Local property, const >> AccessorInfo& info) >> >> I've defined the named property accessor like this: >> >> functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(NamedPropertyAccessor); >> >> The NamedPropertyAccessor signatures is: >> >> Handle HTMLFormElement::NamedPropertyAccessor(Local >> property, const AccessorInfo& info) >> >> Any thoughts? >> >> Thanks, >> Erez >> >> >> >> >> -- >> v8-users mailing list >> v8-u...@googlegroups.com >> http://groups.google.com/group/v8-users > > > -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users
Re: [v8-users] Building v8
On Sat, Dec 1, 2012 at 6:25 PM, Maksim Lukyanchenko < maksim.lukyanche...@gmail.com> wrote: > I'm trying to compile V8 on Win7 for VS2010: > > svn co http://gyp.googlecode.com/svn/trunk build/gyp > > svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26 > third_party/python_26 > > svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin > third_party/cygwin > > > 1) And when I try: > c:\v8> third_party/python_26/python.exe build\gyp_v8 > > I get the message: > [Errno2] No such file or directory > This should work, and last time I tried it, it did work for me. Please try to figure out which file it is complaining about. When you use backslashes instead of slashes, does that change anything? Can you manually verify that third_party\python_26\python.exe and build\gyp_v8 exist? > > And it's I can understand. > > 2) When I try: > c:\v8> third_party/python_26/python.exe build\gyp > This can't work. > I get the message: > third_party/python_26/python.exe: can't find '__main__.py' in 'build\\gyp' > > 3) When I try: > c:\v8> third_party/python_26/python.exe build\gyp\gyp > This can't work either. > I get the message: > gyp: usage: gyp [options ...][build_file ...] > gyp: error: no build_file > > What am I doing wrong and how do I compile V8? > > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users
Re: [v8-users] Accessing a named property with the same name as a getter/setter
JavaScript objects can't have a method and a property of the same name. Rename one of the two. On Sun, Dec 2, 2012 at 10:20 AM, Erez wrote: > Hi. > I'm using v8 to process web pages. > I have the following problem with a code on a certain site. > The site has the following structure of forms: > > > > > > > > > The form content is a table of data, where each row contains a few actions > that can be applied to the data (edit, copy, view) and such. > The actions are implemented in JavaScript code with an onclick event to a > function similar to this: > function sumbitForm(objectid, formName, method, action){ > var form = document.forms[formName]; > form.objectid.value = objectid; > form.method.value = method; > form.action.value = action; > form.submit(); > } > > The problem is that when the code executes, calling form.method.value > really returns the accessor (getter) to the form method attribute instead > of the form method hidden parameter. > > I've defined the accessors like this: > functionTemplate->InstanceTemplate()->SetAccessor(String::New("method"), > GetMethod, SetMethod); > > The GetMethod signature is: > Handle HTMLFormElement::GetAction(Local property, const > AccessorInfo& info) > > I've defined the named property accessor like this: > > functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(NamedPropertyAccessor); > > The NamedPropertyAccessor signatures is: > > Handle HTMLFormElement::NamedPropertyAccessor(Local > property, const AccessorInfo& info) > > Any thoughts? > > Thanks, > Erez > > > > > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users
[v8-users] Accessing a named property with the same name as a getter/setter
Hi. I'm using v8 to process web pages. I have the following problem with a code on a certain site. The site has the following structure of forms: The form content is a table of data, where each row contains a few actions that can be applied to the data (edit, copy, view) and such. The actions are implemented in JavaScript code with an onclick event to a function similar to this: function sumbitForm(objectid, formName, method, action){ var form = document.forms[formName]; form.objectid.value = objectid; form.method.value = method; form.action.value = action; form.submit(); } The problem is that when the code executes, calling form.method.value really returns the accessor (getter) to the form method attribute instead of the form method hidden parameter. I've defined the accessors like this: functionTemplate->InstanceTemplate()->SetAccessor(String::New("method"), GetMethod, SetMethod); The GetMethod signature is: Handle HTMLFormElement::GetAction(Local property, const AccessorInfo& info) I've defined the named property accessor like this: functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(NamedPropertyAccessor); The NamedPropertyAccessor signatures is: Handle HTMLFormElement::NamedPropertyAccessor(Local property, const AccessorInfo& info) Any thoughts? Thanks, Erez -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users