Skip to content

Commit

Permalink
Merge pull request #15321 from emberjs/fastboot-niceness
Browse files Browse the repository at this point in the history
Improve fastboot debugger/repl experience
  • Loading branch information
rwjblue committed Jun 2, 2017
2 parents a6923df + 74edc63 commit 23e2202
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/container/lib/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ function wrapManagerInDeprecationProxy(manager) {
if (HAS_NATIVE_PROXY) {
let validator = {
get(obj, prop) {
if (prop !== 'class' && prop !== 'create') {
if (typeof prop === 'symbol') { return obj[prop]; }
if (prop === 'inspect') { return undefined; /* for nodes formatter */ }

if (prop !== 'class' && prop !== 'create' && prop !== 'toString') {
throw new Error(`You attempted to access "${prop}" on a factory manager created by container#factoryFor. "${prop}" is not a member of a factory manager."`);
}

Expand Down

0 comments on commit 23e2202

Please sign in to comment.