Permalink
Browse files

Fix usage of splice in evaluate functions

  • Loading branch information...
zploskey committed Mar 3, 2018
1 parent 94e42be commit 821f0b0ceb1ad342fd554192fcce65b84cf906f1
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/FrameBase.re
@@ -76,16 +76,16 @@ external addStyleTag : tagOptions => Js.Promise.t(ElementHandle.t) = "";

/* TODO: Currently only ever work for functions taking no arguments,
and the second parameter array can only ever be empty */
[@bs.send.pipe : t]
[@bs.send.pipe : t] [@bs.splice]
external evaluate :
(unit => Js.Promise.t(Js.Json.t), [@bs.splice] array({..})) =>
(unit => Js.Promise.t(Js.Json.t), array({..})) =>
Js.Promise.t(Js.Json.t) =
"";

/* TODO: Currently only ever work for functions taking no arguments,
and the second parameter array can only ever be empty */
[@bs.send.pipe : t]
[@bs.send.pipe : t] [@bs.splice]
external evaluateHandle :
(unit => Js.Promise.t(JSHandle.t), [@bs.splice] array({..})) =>
(unit => Js.Promise.t(JSHandle.t), array({..})) =>
Js.Promise.t(JSHandle.t) =
"";

0 comments on commit 821f0b0

Please sign in to comment.