stefanpenner / es3-safe-recast

22 stars 11 forks source link

Failing test for Ember.Namespace improper recasting. #7

Closed rwjblue closed 10 years ago

rwjblue commented 10 years ago
  1)  protected local variable scope test:

      EqualityError: expected input.js and output.js to match
      + expected - actual

                                               },
                                               "type": "MemberExpression"
                                             },
                                             "property": {
      +                                        "name": "toString",
      +                                        "type": "Identifier"
      -                                        "raw": "\"toString\"",
      -                                        "type": "Literal",
      -                                        "value": "toString"
                                             },
                                             "type": "MemberExpression"
                                           },
                                           "operator": "=",
                                               },
                                               "type": "MemberExpression"
                                             },
                                             "property": {
      +                                        "name": "toString",
      +                                        "type": "Identifier"
      -                                        "raw": "\"toString\"",
      -                                        "type": "Literal",
      -                                        "value": "toString"
                                             },
                                             "type": "MemberExpression"
                                           },
                                           "operator": "delete",

      at Context.<anonymous> (/Users/rjackson/Source/javascript/es3-safe-recast/tests/compiler-test.js:41:3)
      at callFn (/Users/rjackson/Source/javascript/es3-safe-recast/node_modules/mocha/lib/runnable.js:223:21)
      at Test.Runnable.run (/Users/rjackson/Source/javascript/es3-safe-recast/node_modules/mocha/lib/runnable.js:216:7)
      at Runner.runTest (/Users/rjackson/Source/javascript/es3-safe-recast/node_modules/mocha/lib/runner.js:374:10)
      at /Users/rjackson/Source/javascript/es3-safe-recast/node_modules/mocha/lib/runner.js:452:12
      at next (/Users/rjackson/Source/javascript/es3-safe-recast/node_modules/mocha/lib/runner.js:299:14)
      at /Users/rjackson/Source/javascript/es3-safe-recast/node_modules/mocha/lib/runner.js:309:7
      at next (/Users/rjackson/Source/javascript/es3-safe-recast/node_modules/mocha/lib/runner.js:247:23)
      at Object._onImmediate (/Users/rjackson/Source/javascript/es3-safe-recast/node_modules/mocha/lib/runner.js:276:5)
      at processImmediate [as _immediateCallback] (timers.js:330:15)
stefanpenner commented 10 years ago

thanks