Closed
Bug 738356
Opened 13 years ago
Closed 13 years ago
Add JSAPI for binding functions
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review |
I want this for bug 726949.
![]() |
Assignee | |
Updated•13 years ago
|
Assignee: general → bzbarsky
OS: Mac OS X → All
Priority: -- → P1
Hardware: x86 → All
![]() |
Assignee | |
Comment 1•13 years ago
|
||
![]() |
Assignee | |
Updated•13 years ago
|
Attachment #608590 -
Flags: review?(jorendorff)
![]() |
Assignee | |
Updated•13 years ago
|
Whiteboard: [need review]
Comment 2•13 years ago
|
||
Comment on attachment 608590 [details] [diff] [review] Add JSAPI for doing the equivalent of Function.prototype.bind. Looks good. Please change the functions JS_BindCallable and js_fun_bind to have return type JSObject * rather than an out parameter. Can we have a jsapi-test? See js/src/jsapi-tests/README.
Attachment #608590 -
Flags: review?(jorendorff) → review+
![]() |
Assignee | |
Comment 3•13 years ago
|
||
> Please change the functions JS_BindCallable and js_fun_bind to have return type > JSObject* rather than an out parameter. And use an out param boolean to communicate failure state? That seems odd for the JS engine... > Can we have a jsapi-test? Probably, once I have time to work on this again.
![]() |
Assignee | |
Comment 4•13 years ago
|
||
Per irc comments, just use NULL return to indicate failure.
![]() |
Assignee | |
Comment 5•13 years ago
|
||
![]() |
Assignee | |
Updated•13 years ago
|
Attachment #608590 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 6•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/f381c497e47a with JSAPI test.
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla14
![]() |
Assignee | |
Comment 7•13 years ago
|
||
Er, https://hg.mozilla.org/integration/mozilla-inbound/rev/f381c497e47a
Comment 8•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f381c497e47a
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•