Skip to content

Commit 378b593

Browse files
committed
Skulpt fixes, remove parsing cache
1 parent eab62ef commit 378b593

4 files changed

Lines changed: 24 additions & 18 deletions

File tree

static/libs/blockpy/blockpy.css

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/libs/blockpy/blockpy.js

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/libs/skulpt/skulpt-stdlib.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/libs/skulpt/skulpt.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28874,16 +28874,8 @@ function makeParser (filename, style) {
2887428874
return p;
2887528875
}
2887628876

28877-
Sk.parseCache = {
28878-
"lastInput": null,
28879-
"lastParse": null,
28880-
"lastUnit": null
28881-
};
2888228877

2888328878
Sk.parse = function parse (filename, input) {
28884-
if (Sk.parseCache.lastInput == input) {
28885-
return Sk.parseCache.lastUnit;
28886-
}
2888728879

2888828880
var T_COMMENT = Sk.token.tokens.T_COMMENT;
2888928881
var T_NL = Sk.token.tokens.T_NL;
@@ -28957,8 +28949,6 @@ Sk.parse = function parse (filename, input) {
2895728949
* Small adjustments here in order to return th flags and the cst
2895828950
*/
2895928951
var result = {"cst": parser.rootnode, "flags": parser.p_flags, "comments": parser.comments};
28960-
Sk.parseCache.lastUnit = result;
28961-
Sk.parseCache.lastInput = input;
2896228952
return result;
2896328953
};
2896428954

@@ -35093,7 +35083,7 @@ var Sk = {}; // jshint ignore:line
3509335083

3509435084
Sk.build = {
3509535085
githash: "b358af4824d08ce74dc6dd9bfffe9df9d619f806",
35096-
date: "2019-09-12T04:21:23.623Z"
35086+
date: "2019-09-12T07:09:03.833Z"
3509735087
};
3509835088

3509935089
/**

0 commit comments

Comments
 (0)