目前在主分支上以下内容有效
$ cljs -R:cljs/dev -re node cljs.user=> (defprotocol IFoo (delete [_])) false cljs.user=> (extend-type default IFoo (delete [_] 17)) nil cljs.user=> (delete #js {}) 17
但是,在1.10.439中并不能正常工作
`
$ cljs -R:cljs/rel -re node
ClojureScript 1.10.439
cljs.user=> (defprotocol IFoo (delete [_]))
false
cljs.user=> (extend-type default IFoo (delete [_] 17))
nil
cljs.user=> (delete #js {})
repl:13
throw e6600auto__;
^
TypeError: Cannot read property 'object' of undefined
at cljs$user$delete (repl:18:40)
at repl:1:107
at repl:9:3
at repl:14:4
at ContextifyScript.Script.runInThisContext (vm.js:50:33)
at Object.runInThisContext (vm.js:139:38)
at Domain.<anonymous> ([stdin]:76:38)
at Domain.run (domain.js:242:14)
at Socket.<anonymous> ([stdin]:73:29)
at emitOne (events.js:116:13)
`
这显然是作为CLJS-2960的副作用得到修复的。
这个工单要求添加一个测试以确保后续的正确行为。