File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function caml_raise_with_arg(tag, arg) {
31
31
//Provides: caml_raise_with_args (const, mutable)
32
32
//Requires: caml_maybe_attach_backtrace
33
33
function caml_raise_with_args ( tag , args ) {
34
- throw caml_maybe_attach_backtrace ( [ 0 , tag ] . concat ( args ) ) ;
34
+ throw caml_maybe_attach_backtrace ( [ 0 , tag ] . push ( args ) ) ;
35
35
}
36
36
37
37
//Provides: caml_raise_with_string (const, const)
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ function caml_js_wrap_callback_unsafe(f) {
411
411
//Requires: caml_callback, caml_js_wrap_callback
412
412
function caml_js_wrap_meth_callback ( f ) {
413
413
return function ( ...args ) {
414
- const res = caml_callback ( f , [ this , ... args ] ) ;
414
+ const res = caml_callback ( f , [ this ] . push ( ... args ) ) ;
415
415
return res instanceof Function ? caml_js_wrap_callback ( res ) : res ;
416
416
} ;
417
417
}
@@ -427,7 +427,7 @@ function caml_js_wrap_meth_callback_arguments(f) {
427
427
function caml_js_wrap_meth_callback_strict ( arity , f ) {
428
428
return function ( ...args ) {
429
429
args . length = arity ;
430
- return caml_callback ( f , [ this , ... args ] ) ;
430
+ return caml_callback ( f , [ this ] . push ( ... args ) ) ;
431
431
} ;
432
432
}
433
433
//Provides: caml_js_wrap_meth_callback_unsafe const (const)
@@ -436,7 +436,7 @@ function caml_js_wrap_meth_callback_unsafe(f) {
436
436
return function ( ...args ) {
437
437
const len = caml_js_function_arity ( f ) - 1 ;
438
438
args . length = len ;
439
- return caml_callback ( f , [ this , ... args ] ) ;
439
+ return caml_callback ( f , [ this ] . push ( ... args ) ) ;
440
440
} ;
441
441
}
442
442
You can’t perform that action at this time.
0 commit comments