Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw when try to set the root object #24

Merged
merged 1 commit into from
Oct 19, 2016
Merged

Throw when try to set the root object #24

merged 1 commit into from
Oct 19, 2016

Conversation

IvanGoncharov
Copy link
Contributor

Before this changes:

var obj = {};
pointer.set(obj, '', 'bla');
console.log(JSON.stringify(obj)); //{"undefined": "bla"}

Before this changes:
```js
var obj = {};
pointer.set(obj, '', 'bla');
console.log(JSON.stringify(obj)); //{"undefined": "bla"}
```
@IvanGoncharov
Copy link
Contributor Author

@manuelstofer @epoberezkin Can you please review this PR?

@epoberezkin
Copy link
Collaborator

looks good

@epoberezkin epoberezkin merged commit 322eb1e into manuelstofer:master Oct 19, 2016
@epoberezkin
Copy link
Collaborator

@IvanGoncharov Actually some note in docs would be helpful here too... I don't mind adding it or you can, please let me know.

@IvanGoncharov
Copy link
Contributor Author

@epoberezkin Thanks, it would be great if you add it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants