Skip to content

Commit

Permalink
Use TYPE OF instead of TYPE-OF
Browse files Browse the repository at this point in the history
TYPE-OF is currently broken.
  • Loading branch information
hostilefork committed Feb 18, 2024
1 parent 981d45f commit 54e3291
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions replpad.reb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ use [

; there's still some values that will trip this function up
form-value: lambda [value] [
switch type-of get/any 'value [
switch type of get/any 'value [
null [
"<NULL>"
]
Expand All @@ -117,7 +117,7 @@ use [
spaced [
"func"
mold spec-of :value
switch type-of body-of :value [
switch type of body-of :value [
block! [
mold body-of :value
]
Expand Down
8 changes: 4 additions & 4 deletions storage.reb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ if storage-enabled? [ ; Browser reported that it is storage-capable
]
]

switch type-of port.spec.ref: clean-path port.spec.ref [
switch type of port.spec.ref: clean-path port.spec.ref [
file! [
extend port.spec 'target either find/match port.spec.ref %/tmp/ [
"session"
Expand All @@ -314,7 +314,7 @@ if storage-enabled? [ ; Browser reported that it is storage-capable

actor: [
read: lambda [port] [
switch type-of port.spec.ref [
switch type of port.spec.ref [
file! [
either storage-exists? port.spec.target form port.spec.ref [
any [
Expand All @@ -333,7 +333,7 @@ if storage-enabled? [ ; Browser reported that it is storage-capable
]

write: lambda [port data <local> dir] [
switch type-of port.spec.ref [
switch type of port.spec.ref [
file! [
ensure [binary! text!] data

Expand Down Expand Up @@ -374,7 +374,7 @@ if storage-enabled? [ ; Browser reported that it is storage-capable
]

query: func [return: [<opt> object!] port [port!]] [
switch type-of port.spec.ref [
switch type of port.spec.ref [
file! [
let store: port.spec.target
let path: form port.spec.ref
Expand Down

0 comments on commit 54e3291

Please sign in to comment.