20 Commits b80704f469 ... 778fc66b5a

Author SHA1 Message Date
  Herby Vojčík 778fc66b5a Revamp the way 'super' is compiled. 2 months ago
  Herby Vojčík c9a7c8ca23 Stop using fn. 2 months ago
  Herby Vojčík 274315275f Compiler compiling instantiateFn. 2 months ago
  Herby Vojčík e5ce221d64 Outputting instantiateFn. 2 months ago
  Herby Vojčík 3dc8b6eefd Allow method late-binding with `instantiateFn`. 2 months ago
  Herby Vojčík 3bba72396c Fix 1 month ago
  Herby Vojčík 14ea431842 Fix `JSObjectProxy fn prototype` inspecting. 1 month ago
  Herby Vojčík f0e27ed75d Working on 0.24.0 1 month ago
  Herby Vojčík 8e01fb2292 Recompile (while version set to 0.23.1) 1 month ago
  Herby Vojčík 4f667fb5ba Release version 0.23.1 1 month ago
  Herby Vojčík 6fba38b352 Remove unused remnants. 1 month ago
  Herby Vojčík 84653027c8 Make parser compilable in Unix. 1 month ago
  Herby Vojčík e9e679d6e1 Release notes. 1 month ago
  Herby Vojčík 40d20a6e82 scaffolding: Bump to 0.23.3. 1 month ago
  Herby Vojčík b6a88628cf Missing pieces from 5e896f9. 1 month ago
  Herby Vojčík b80704f469 Revamp the way 'super' is compiled. 2 months ago
  Herby Vojčík 280a01593f Stop using fn. 2 months ago
  Herby Vojčík 1f6c1cc281 Compiler compiling instantiateFn. 2 months ago
  Herby Vojčík fbf371484c Outputting instantiateFn. 2 months ago
  Herby Vojčík 042df4149b Allow method late-binding with `instantiateFn`. 2 months ago

+ 3 - 2
CHANGELOG

@@ -1,9 +1,10 @@
-? ??? 2019 - Release 0.24.0
+26 Mar 2019 - Release 0.23.1
 ===================================
 
 * Deprecate global "SmalltalkParser".
+* Lot of small fixes in engine and IDEs.
 
-Commits: https://lolg.it/amber/amber/commits/0.23.0
+Commits: https://lolg.it/amber/amber/commits/0.23.1
 
 
 25 Feb 2019 - Release 0.23.0

File diff suppressed because it is too large
+ 16619 - 13755
cli/dist/amber-cli.js


+ 1 - 1
grunt-init-project/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@ambers/grunt-init-amber-project",
-  "version": "0.23.2",
+  "version": "0.23.3",
   "description": "grunt-init template for amber project",
   "main": "template.js",
   "scripts": {

+ 2 - 0
grunt-init-project/root/index.html

@@ -18,6 +18,8 @@
 <button id="amber-with">Hello from TagBrush >> with:</button>
 <button id="silk-tag">Hello from Silk >> TAG:</button>
 <button id="jquery-append">Hello from jQuery append</button>
+<button id="console-log">Log into JS console</button>
+<button id="timeout-alert">Remind me in five seconds</button>
 <ol id="output-list"></ol>
 <!-- EXAMPLE APP END -->
 <script type='text/javascript'>

+ 1 - 1
lang/API-CHANGES.txt

@@ -1,4 +1,4 @@
-0.24.0:
+0.23.1:
 
 + TBehaviorDefaults >>
   + includingPossibleMetaDo:

+ 2 - 2
lang/base/parser.js

@@ -3,7 +3,7 @@
  *
  * http://pegjs.org/
  */
-define(["./boot"], function($boot) {
+define(["./boot"], function(__boot) {
   "use strict";
 
   function peg$subclass(child, parent) {
@@ -4059,7 +4059,7 @@ define(["./boot"], function($boot) {
     }
 
 
-    	var $globals = $boot.globals;
+    	var $globals = __boot.globals;
 
     	function newNode(nodeClass) {
     		return nodeClass._new()._location_(location())._source_(text());

+ 1 - 1
lang/base/parser.pegjs

@@ -1,5 +1,5 @@
 {
-	var $globals = $boot.globals;
+	var $globals = __boot.globals;
 
 	function newNode(nodeClass) {
 		return nodeClass._new()._location_(location())._source_(text());

+ 1 - 5
lang/package.json

@@ -23,12 +23,8 @@
   "engines": {
     "node": ">=4.0.0"
   },
-  "strings": {
-    "buildParserBegin": "// jshint ignore:start\ndefine(['./boot'], function($boot) {\nvar $globals = $boot.globals;\n",
-    "buildParserEnd": "});"
-  },
   "scripts": {
-    "build:parser": "pegjs --cache -o base/parser.js --format amd --dependency $boot:./boot base/parser.pegjs"
+    "build:parser": "pegjs --cache -o base/parser.js --format amd --dependency __boot:./boot base/parser.pegjs"
   },
   "devDependencies": {
     "pegjs": "^0.10.0"

+ 3 - 3
lang/src/Kernel-Infrastructure.js

@@ -518,10 +518,10 @@ selector: "printString",
 protocol: "printing",
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: [],
-source: "printString\x0a\x09<inlineJS: '\x0a\x09\x09var js = $self.jsObject;\x0a\x09\x09return js.toString\x0a\x09\x09\x09? js.toString()\x0a\x09\x09\x09: Object.prototype.toString.call(js)\x0a\x09'>",
+source: "printString\x0a\x09<inlineJS: '\x0a\x09\x09var js = $self.jsObject;\x0a\x09\x09return !js ? \x22<<malformed JS object proxy>>\x22 : js.toString\x0a\x09\x09\x09? js.toString()\x0a\x09\x09\x09: Object.prototype.toString.call(js)\x0a\x09'>",
 referencedClasses: [],
 //>>excludeEnd("ide");
-pragmas: [["inlineJS:", ["\x0a\x09\x09var js = $self.jsObject;\x0a\x09\x09return js.toString\x0a\x09\x09\x09? js.toString()\x0a\x09\x09\x09: Object.prototype.toString.call(js)\x0a\x09"]]],
+pragmas: [["inlineJS:", ["\x0a\x09\x09var js = $self.jsObject;\x0a\x09\x09return !js ? \x22<<malformed JS object proxy>>\x22 : js.toString\x0a\x09\x09\x09? js.toString()\x0a\x09\x09\x09: Object.prototype.toString.call(js)\x0a\x09"]]],
 messageSends: []
 }, function ($class, $globals){ return function (){
 var self=this,$self=this;
@@ -530,7 +530,7 @@ return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 
 		var js = $self.jsObject;
-		return js.toString
+		return !js ? "<<malformed JS object proxy>>" : js.toString
 			? js.toString()
 			: Object.prototype.toString.call(js)
 	;

+ 1 - 1
lang/src/Kernel-Infrastructure.st

@@ -138,7 +138,7 @@ printOn: aStream
 printString
 	<inlineJS: '
 		var js = $self.jsObject;
-		return js.toString
+		return !!js ? "<<malformed JS object proxy>>" : js.toString
 			? js.toString()
 			: Object.prototype.toString.call(js)
 	'>