Closed
Bug 603364
Opened 15 years ago
Closed 15 years ago
my_proto is unused in testClassGetter_isCalled
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: timeless)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, Whiteboard: [fixed-in-tracemonkey])
Attachments
(1 file)
863 bytes,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
54 BEGIN_TEST(testClassGetter_isCalled)
55 {
56 JSObject *my_proto;
57
58 my_proto = JS_InitClass(cx, JS_GetGlobalObject(cx), NULL, &ptestClass, PTest, 0,
59 NULL, ptestFunctions, NULL, NULL);
60
61 EXEC("function check() { var o = new PTest(); o.test_fn(); o.test_value1; o.test_value2; o.test_value1; }");
62
63 for (int i = 1; i < 9; i++) {
64 jsvalRoot rval(cx);
65 CHECK(JS_CallFunctionName(cx, global, "check", 0, NULL, rval.addr()));
66 CHECK_SAME(INT_TO_JSVAL(called_test_fn), INT_TO_JSVAL(i));
67 CHECK_SAME(INT_TO_JSVAL(called_test_prop_get), INT_TO_JSVAL(4 * i));
68 }
69 return true;
70 }
71 END_TEST(testClassGetter_isCalled)
-- yes, I know it's a test. The coverity instance I have isn't smart enough to ignore those, and I can't see a reason you wouldn't want to make my_proto used.
Comment 2•15 years ago
|
||
Comment on attachment 483789 [details] [diff] [review]
patch
I'll land this today.
Attachment #483789 -
Flags: review?(jorendorff) → review+
Comment 3•15 years ago
|
||
Whiteboard: [fixed-in-tracemonkey]
Comment 4•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•