Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19086 do not allow expressions as pragma arguments https://pharo.fogbugz.com/f/cases/19086 http://files.pharo.org/image/60/60220.zip
- Loading branch information
Jenkins Build Server
authored and
ci
committed
Sep 13, 2016
1 parent
d6bfc88
commit edd9f37
Showing
7 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
AST-Core.package/RBParser.class/instance/private-parsing/parsePragmaLiteral.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tance/tests parsing/testInvalidPragmas.st → ...ests parsing/testInvalidPragmaPosition.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
testInvalidPragmas | ||
testInvalidPragmaPosition | ||
#( | ||
'foo self. <foo: $a>' | ||
'<foo: $a>' | ||
|
23 changes: 23 additions & 0 deletions
23
...kage/RBParserTest.class/instance/tests parsing/testPragmaImplicitLiteralArrayIsInvalid.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
testPragmaImplicitLiteralArrayIsInvalid | ||
| pragmaWithExpressionAsArgument pragmaWithLiteralArrayAsArgument pragmaWithStringAsArgument | | ||
"a pragma with arguments that look like code | ||
(3+4) were implicitly converted to a literal array | ||
#(3+4), this is not allowed anymore" | ||
pragmaWithExpressionAsArgument := 'foo | ||
<func: (3+4) res: 7> | ||
^ self'. | ||
self should:[RBParser parseMethod: pragmaWithExpressionAsArgument] raise: Exception. | ||
|
||
"an explicit literal array is allowed" | ||
pragmaWithLiteralArrayAsArgument := 'foo | ||
<func: #(3+4) res: 7> | ||
^ self'. | ||
"Should work" | ||
RBParser parseMethod: pragmaWithLiteralArrayAsArgument. | ||
|
||
"and of course a string literal" | ||
pragmaWithStringAsArgument := 'foo | ||
<func: ''(3+4)'' res: 7> | ||
^ self'. | ||
"should work" | ||
RBParser parseMethod: pragmaWithStringAsArgument. |
6 changes: 3 additions & 3 deletions
6
...s/instance/pharo - scripts/script60219.st → ...s/instance/pharo - scripts/script60220.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
ScriptLoader60.package/ScriptLoader.class/instance/pharo - updates/update60219.st
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
ScriptLoader60.package/ScriptLoader.class/instance/pharo - updates/update60220.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
update60220 | ||
"self new update60220" | ||
self withUpdateLog: '19086 do not allow expressions as pragma arguments | ||
https://pharo.fogbugz.com/f/cases/19086'. | ||
self loadTogether: self script60220 merge: false. | ||
self flushCaches. |
7 changes: 2 additions & 5 deletions
7
ScriptLoader60.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
commentForCurrentUpdate | ||
^ '17857 newAnonymousSubclass should works for Metaclass | ||
https://pharo.fogbugz.com/f/cases/17857 | ||
19082 The tool to do updates is broken due to space in SystemVersion | ||
https://pharo.fogbugz.com/f/cases/19082' | ||
^ '19086 do not allow expressions as pragma arguments | ||
https://pharo.fogbugz.com/f/cases/19086' |