webkittens! lexical scoping is in danger!

2 December 2011 5:36 PM (webkit | webkitgtk | jsc | javascript | ecmascript | igalia)

The GTK+ WebKittens are on the loose here in Coruña. There's folks here from Red Hat, Motorola, Collabora, and of course Igalia. It's good times; beyond the obvious platitudes of "um, the web is important and stuff" it's good to be in a group that is creating the web experience of millions of users.

My part in that is very small, adding support for block-scoped let and const to JavaScriptCore.

I've made some progress, but it could be going more smoothly. I have made the parser do the right thing for const, correctly raising errors for duplicate bindings, including nested var declarations that get hoisted. The parser is fine: it maintains an environment like you would expect. But the AST assumes that all locals get hoisted to function scope, so there's no provision for e.g. two distinct local variables with the same name. So there is still some work to do on the AST, and it's a thicket of templates.

Hopefully I'll end up with a prototype by the end of the hackfest (Sunday). Sooner if I find that sword of omens, which I seem to have misplaced. Sight beyond sight!

14 responses

  1. Gun Metal Gray Reviews says:

    Such a nice post, keep up the fantastic work.

  2. samsung galaxy s8 says:

    There have been many rumors about the Samsung Galaxy S8 appeared. The latest information suggests that the Galaxy S8 screen

  3. cinema box app says:
  4. YO YO says:
  5. ADIL says:
  6. GMX Login says:

    very good site


    gmx login

  7. says:
  8. debra morgan says:

    We have to update the game to the latest methods or our systems will stop supporting it. We have to change the variables and other methods. The code is very old and we have to update it to latest form for its existence. cheapest cable

  9. voter list says:

    Such a nice post, keep up the fantastic work. voter list voter id status

  10. megabox hd apk says:

    Do you know now we can watch free movies online. This megabox hd app for pc allows you to watch the movies at high definition.

  11. lenny face says:
  12. emoji keyboard says:
  13. go keyboard says:
  14. keyboard theme says:

Leave a Reply