Fix a bug in **boot.js** in `readJSObject` where the *nullness* of the js wasn't treated. Also fix tiny mistake in `package.json`
@@ -23,7 +23,7 @@
"url": "git://github.com/amber-smalltalk/amber.git"
},
"engines": {
- "node": ">=0.10.0 <0.13.0"
+ "node": ">=0.10.0 <0.13.0 || >=4.0.0"
"bugs": {
"url": "https://github.com/amber-smalltalk/amber/issues?labels=in+cli"
@@ -805,6 +805,8 @@ define("amber/boot", ['require', './browser-compatibility'], function (require)
/* Converts a JavaScript object to valid Smalltalk Object */
st.readJSObject = function (js) {
+ if (js == null)
+ return null;
var readObject = js.constructor === Object;
var readArray = js.constructor === Array;
var object = readObject ? globals.Dictionary._new() : readArray ? [] : js;
"scripts": {
"test": "grunt test && cd external && cd amber-cli && npm test && cd .. && cd .."
@@ -790,6 +790,8 @@ define("amber/boot", ['require', './browser-compatibility'], function (require)