@@ -260,7 +260,7 @@ bool js_cocos2dx_builder_CCBAnimationManager_runAnimationsForSequenceNamedTweenD
260
260
const char * arg0;
261
261
double arg1;
262
262
std::string arg0_tmp; ok &= jsval_to_std_string (cx, args.get (0 ), &arg0_tmp); arg0 = arg0_tmp.c_str ();
263
- ok &= JS::ToNumber ( cx, JS::RootedValue (cx, args.get (1 ) ), &arg1);
263
+ ok &= JS::ToNumber ( cx, args.get (1 ), &arg1);
264
264
JSB_PRECONDITION2 (ok, cx, false , " js_cocos2dx_builder_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration : Error processing arguments" );
265
265
cobj->runAnimationsForSequenceNamedTweenDuration (arg0, arg1);
266
266
args.rval ().setUndefined ();
@@ -555,7 +555,7 @@ bool js_cocos2dx_builder_CCBAnimationManager_runAnimationsForSequenceIdTweenDura
555
555
int arg0;
556
556
double arg1;
557
557
ok &= jsval_to_int32 (cx, args.get (0 ), (int32_t *)&arg0);
558
- ok &= JS::ToNumber ( cx, JS::RootedValue (cx, args.get (1 ) ), &arg1);
558
+ ok &= JS::ToNumber ( cx, args.get (1 ), &arg1);
559
559
JSB_PRECONDITION2 (ok, cx, false , " js_cocos2dx_builder_CCBAnimationManager_runAnimationsForSequenceIdTweenDuration : Error processing arguments" );
560
560
cobj->runAnimationsForSequenceIdTweenDuration (arg0, arg1);
561
561
args.rval ().setUndefined ();
@@ -1404,7 +1404,7 @@ bool js_cocos2dx_builder_CCBReader_setResolutionScale(JSContext *cx, uint32_t ar
1404
1404
bool ok = true ;
1405
1405
if (argc == 1 ) {
1406
1406
double arg0;
1407
- ok &= JS::ToNumber ( cx, JS::RootedValue (cx, args.get (0 ) ), &arg0);
1407
+ ok &= JS::ToNumber ( cx, args.get (0 ), &arg0);
1408
1408
JSB_PRECONDITION2 (ok, cx, false , " js_cocos2dx_builder_CCBReader_setResolutionScale : Error processing arguments" );
1409
1409
cocosbuilder::CCBReader::setResolutionScale (arg0);
1410
1410
args.rval ().setUndefined ();
0 commit comments