ejayimperial / google-caja

Automatically exported from code.google.com/p/google-caja
0 stars 0 forks source link

Global constructor names aren't being rewritten as properties of __OUTERS__ #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
        function F() {};
        f = new F();

What is the expected output? What do you see instead?

Expected:
{
  ___OUTERS___.F = ___.simpleFunc(function () {
    });
  ___OUTERS___.f = new (___.asCtor(___OUTERS___.F))();
}

Actual:
{
  ___OUTERS___.F = ___.simpleFunc(function () {
    });
  ___OUTERS___.f = new (___.asCtor(F))();
}

Original issue reported on code.google.com by metaw...@gmail.com on 17 Jan 2008 at 12:11

GoogleCodeExporter commented 9 years ago
Dduplicate of issue #24.

Original comment by andrea.c...@gmail.com on 17 Jan 2008 at 10:03

GoogleCodeExporter commented 9 years ago
Fixed in r405

Original comment by metaw...@gmail.com on 17 Jan 2008 at 10:53