Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit 9417ac2

Browse files
committed
Merge pull request #39 from codeheroics/feat-support-symbols
Support ES2015 Symbols
2 parents 9603900 + a8a5492 commit 9417ac2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/src/App.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default class App extends Component {
1414
baz: undefined,
1515
func: (function User() {})
1616
},
17+
symbol: Symbol('value'),
1718
immutable: Map({ key: 'value' })
1819
};
1920

src/grab-node.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default function({
6161
case 'Undefined':
6262
return <JSONValueNode {...simpleNodeProps} valueColor={theme.base08} valueGetter={() => 'undefined'} />;
6363
case 'Function':
64+
case 'Symbol':
6465
return <JSONValueNode {...simpleNodeProps} valueColor={theme.base08} valueGetter={raw => raw.toString()} />;
6566
case 'Custom':
6667
return <JSONValueNode {...simpleNodeProps} />;

0 commit comments

Comments
 (0)