Re: [v8-users] Generator test.

2015-08-28 Thread Andy Wingo
On Fri 28 Aug 2015 07:05, Jane Chen jxche...@gmail.com writes: Embedding v8 3.24. Is there any API to test whether a v8 object is a generator? I tried GetConstructorName(), or GetConstructor(), then GetName(), neither gives me GeneratorFunctionPropotype which I got in JavaScript using g

[v8-users] fyi: miscompilation with clang 3.6.0

2015-08-21 Thread Andy Wingo
Probably none of y'all are silly enough to compile with clang 3.6.0 and all are on 3.6.2 or later. Good on you. But if you happen to compile your own clang, make sure it's not 3.6.0 :) It miscompiled this snippet in v8::internal::Object::SameValue: if (IsNumber() other-IsNumber()) {

[v8-users] Intent to ship: ES'15 arrow functions

2015-06-18 Thread Andy Wingo
Arrow functions are part of ECMAScript 2015. The spec is now final and has been approved by ECMA. [1] Firefox has been shipping arrow functions since version 22 [2]. IE edge ships it as well. [3] The WebKit implementation is in progress [4]. Owner: wi...@igalia.com [1]

Re: [v8-users] Interpretation of Doubles and Integers in V8

2015-02-09 Thread Andy Wingo
Hi, As you probably know, V8 is an implementation of ECMAScript, which has a language specification that specifies all these things :) So the proper place to ask is in a support group for the language. That said, I suggest plugging ToUint32 ecmascript into your favorite search engine :) The

[v8-users] Re: [blink-dev] Intent to ship: ES6 generator functions (V8)

2014-09-19 Thread Andy Wingo
On Fri 19 Sep 2014 12:44, PhistucK phist...@gmail.com writes: Do you intend to ship [generators] with the referenced issues, or is the plan to fix them before shipping (preferred, obviously)? The answer is different for the different bugs. Some will be fixed, some will take more time. We

[v8-users] Re: [blink-dev] Intent to implement: ES6 destructuring binding and assignment

2014-08-21 Thread Andy Wingo
On Thu 21 Aug 2014 00:53, Jonas Sicking jo...@sicking.cc writes: On Wed, Aug 20, 2014 at 4:22 AM, Andy Wingo wi...@igalia.com wrote: Firefox is currently working on fixing this (https://bugzilla.mozilla.org/show_bug.cgi?id=1055984). Please be a little more careful when speaking to what

Re: [v8-users] Using Symbol.iterator from C++

2014-08-21 Thread Andy Wingo
On Thu 21 Aug 2014 08:21, Yutaka Hirano yhir...@chromium.org writes: Andy, with your CL (https://codereview.chromium.org/459413002/) we can use Symbols as property keys. I thought the following code worked, but doesn't. v8::Localv8::FunctionTemplate foo = v8::FunctionTemplate::New

Re: [v8-users] Anyone working on implementing ES6 12.2.7 a.k.a Generator comprehentions?

2014-08-12 Thread Andy Wingo
On Tue 12 Aug 2014 11:09, Refael Ackermann ref...@gmail.com writes: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-generator-comprehensions I'm willing to give it a go, if I'm not stepping on any toes. Alas, this has been deferred to ES7 or later, and likely won't have the same

Re: [v8-users] v8 harmony flag?

2014-05-05 Thread Andy Wingo
On Sun 04 May 2014 20:15, Jane Chen jxche...@gmail.com writes: I found the following documentation for Promise in version 3.24's v8.h: /** * An instance of the built-in Promise constructor (ES6 draft). * This API is experimental. Only works with --harmony flag. */ How do I enable the

[v8-users] GDB pretty-printers for V8

2014-04-18 Thread Andy Wingo
. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. ;;; GDB debugging support for V8. ;;; ;;; Copyright 2014 Andy Wingo wi...@igalia.com ;;; Copyright 2014 Free Software

Re: [v8-users] API to get stack information on generators

2013-06-12 Thread Andy Wingo
Hi, On Wed 12 Jun 2013 23:01, Bruno Jouhier bjouh...@gmail.com writes: Is the spec still in the work of is it frozen? If things are not completely frozen, here are the two things that I would complain about: It's still liquid but getting slushier :) But anyway, there will be ES7, and

Re: [v8-users] API to get stack information on generators

2013-06-07 Thread Andy Wingo
Hi, On Wed 05 Jun 2013 04:57, Bruno Jouhier bjouh...@gmail.com writes: I'm playing with version 3.19 and generators and I would need a JavaScript API to extract stack trace information from generators. I don't really need the whole stacktrace but I would need at least function name +

Re: [v8-users] closure implementation question

2011-06-14 Thread Andy Wingo
On Mon, 2011-06-13 at 16:22 -0700, Brendan Miller wrote: In V8 if I have a closure such as in this example where I have a function f that returns an anonymous closure: function f() { var x = 0; var y = 1; return function() { return x + y; }; } In V8 does the