#1264 Uninitialized trait method

开启中
max2 年之前创建 · 0 条评论
max 评论于 2 年之前

Executing

| deferred |
deferred := JQuery current Deferred new.
[deferred resolve: 'ok'] valueWithTimeout: 1000.
deferred promise then: []

raises the error: nil does not understand #applyTo:arguments:

This is due to the TThenable>>#then: not being initialized, that is instantiateFn not being used to set method.fn.

It seems to be related to commit d8ba5d3b0f

The example uses a jquery deferred, but the problem is common to other thenables.

Executing ``` | deferred | deferred := JQuery current Deferred new. [deferred resolve: 'ok'] valueWithTimeout: 1000. deferred promise then: [] ``` raises the error: nil does not understand #applyTo:arguments: This is due to the TThenable>>#then: not being initialized, that is instantiateFn not being used to set method.fn. It seems to be related to commit d8ba5d3b0fbc277816b6ada3a284285332b63055 The example uses a jquery deferred, but the problem is common to other thenables.
登录 并参与到对话中。
未选择标签
未选择里程碑
未指派成员
1 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。