Skip to content

Commit

Permalink
v4.0.0. Improvement.
Browse files Browse the repository at this point in the history
- `parseCSString` no longer creates the `sandbox` variable if it was
missing, the responsibility of such things should be, and now is,
handled via the eval function of CoffeeScript which is what that method
uses
	- This is a major breaking change as parsing CoffeeScript files will
now by default run still in a virtual machine but now in the global
context rather than their own context
	 	- If you are parsing untrusted CoffeeScript files, you should now
setup the `sandbox` option yourself with the appropriate values
		- If you are parsing trusted CoffeeScript files, or not parsing
CoffeeScript files (e.g. only CSON files), then this change won't
impact you
	- This change is done such that the result object from `parseCSString`
passes `result.__proto__ === Object.prototype` which before it did not
as the different context caused the prototype to point to a different
contexts `Object` causing the assertion to fail
- Updated dependencies
- Updated internal packing conventions
  • Loading branch information
balupton committed Oct 20, 2016
1 parent 9eee2c7 commit 28965b2
Show file tree
Hide file tree
Showing 46 changed files with 175 additions and 1,173 deletions.
6 changes: 5 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 8 June 2014
# 2016 March 8
# https://github.com/bevry/base

root = true
Expand All @@ -17,3 +17,7 @@ indent_size = 2
[*.yml]
indent_style = space
indent_size = 2

[*.md]
indent_style = space
indent_size = 2
Loading

0 comments on commit 28965b2

Please sign in to comment.