Browse Source

Fix crash when rendering plain JS object.

Herbert Vojčík 7 years ago
parent
commit
aebaa48229
2 changed files with 22 additions and 0 deletions
  1. 18 0
      src/Silk.js
  2. 4 0
      src/Silk.st

+ 18 - 0
src/Silk.js

@@ -274,6 +274,24 @@ messageSends: ["<<", "newStream", "yourself"]
 }),
 $globals.JSObjectProxy);
 
+$core.addMethod(
+$core.method({
+selector: "renderOnSilk:",
+protocol: '*Silk',
+fn: function (aSilk){
+var self=this;
+return nil;
+
+},
+//>>excludeStart("ide", pragmas.excludeIdeData);
+args: ["aSilk"],
+source: "renderOnSilk: aSilk\x0a\x09^ nil",
+referencedClasses: [],
+//>>excludeEnd("ide");
+messageSends: []
+}),
+$globals.JSObjectProxy);
+
 $core.addMethod(
 $core.method({
 selector: "inSilk",

+ 4 - 0
src/Silk.st

@@ -121,6 +121,10 @@ asSilk
 
 inSilk
 	^ Silk newStream << self; yourself
+!
+
+renderOnSilk: aSilk
+	^ nil
 ! !
 
 !Object methodsFor: '*Silk'!