Closed
Bug 738356
Opened 14 years ago
Closed 14 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)
|
4.57 KB,
patch
|
Details | Diff | Splinter Review |
I want this for bug 726949.
| Assignee | ||
Updated•14 years ago
|
Assignee: general → bzbarsky
OS: Mac OS X → All
Priority: -- → P1
Hardware: x86 → All
| Assignee | ||
Comment 1•14 years ago
|
||
| Assignee | ||
Updated•14 years ago
|
Attachment #608590 -
Flags: review?(jorendorff)
| Assignee | ||
Updated•14 years ago
|
Whiteboard: [need review]
Comment 2•14 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•14 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•14 years ago
|
||
Per irc comments, just use NULL return to indicate failure.
| Assignee | ||
Comment 5•14 years ago
|
||
| Assignee | ||
Updated•14 years ago
|
Attachment #608590 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•14 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•14 years ago
|
||
Comment 8•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•