Bug #2333
duktape can't handle page.metadata.title in title parameter of appendItem and appendPassiveItem (in spidermonkey it's fine)
Status: | Fixed | Start date: | 11/04/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | API | |||
Target version: | 4.8 | |||
Found in version: | 4.7.427 | Platform: | Linux |
Description
page.metadata.title = 'test'; page.appendPassiveItem("video", "", { title: page.metadata.title });
It prints:
ctx: top=2, stack=[{},[]]
Related issues
Associated revisions
ecmascript: When assigning one (value-)property to another make it behave as expected (copy value)
Fixes #2333
History
#1
Updated by Leonid Protasov over 6 years ago
- Subject changed from appendPassveItem can't handle page.metadata.title as a title parameter (in spidermonkey it's fine) to duktape can't handle page.metadata.title in title parameter of appendItem and appendPassiveItem (in spidermonkey it's fine)
- Description updated (diff)
page.appendItem('megogo:indexByID:' + match[1].match(/\d+/)[0] + ':' + escape(page.metadata.title), "video", { title: new showtime.RichText(page.metadata.title) });
ex.ua [ERROR]: TypeError (not string) at (null):0 ex.ua [ERROR]: STACK DUMP: TypeError: not string duk_api_stack.c:1108 anon native strict preventsyield anon showtime/prop:36 preventsyield anon showtime/prop:46 preventsyield anon showtime/page:140 loader file:///root/showtime-plugins/ex_ua/ex_ua.js:130 anon file:///root/showtime-plugins/ex_ua/ex_ua.js:270 preventsyield apply native strict preventsyield anon showtime/page:190 preventsyield
#2
Updated by Leonid Protasov over 6 years ago
- Related to Bug #2351: page.metadata props are not accessible from page.options.createInt/createBool scope at some conditions (duktape) added
#3
Updated by Andreas Smas over 6 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset git|97caa8dde03c4b2eb5efda997285cfb428db6c89.